文件: tests/binary-tree-iterator.test.ts import{TreeNode,preOrderTraverse,inOrderTraverse,postOrderTraverse,}from'../src/utils/binary-tree-iterator';describe('二叉树遍历单元测试',()=>{consttree:TreeNode={value:5,left:{//... 省略}};test('前序遍历',()=>{constarr:number[]=[];preOrder...