我使用最新版本创建了一个新的react-native应用程序,默认测试运行良好。\n然后我使用\'react-native-fs\'lib在我的应用程序中写入一个文件,它运行良好。\n但我尝试运行测试命令,失败。
\n\n> TestJest@0.0.1 test D:\\test\\TestJest\n> jest\n\n FAIL __tests__\\index.android.js\n \xe2\x97\x8f Test suite failed to run\n\nTypeError: Cannot read property \'RNFSFileTypeRegular\' of undefined\n\n at Object.<anonymous> (node_modules\\react-native-fs\\FS.common.js:17:36)\n at Object.<anonymous> (index.android.js:14:20)\n\nTest Suites: 1 failed, 1 total\nTests: 0 total\nSnapshots: 0 total\nTime: 0.8s\nRan all test suites.\nnpm ERR! Test failed. See above for more details.\nRun Code Online (Sandbox Code Playgroud)\n\n我已按照Jest 的手册文档进行操作,但尚未解决错误。这是我的示例存储库。您能看一下我的示例存储库并让我知道我错了什么吗?
\n\n谢谢。
\n