Closed baibonjwa closed 4 years ago
https://github.com/amcharts/amcharts4/issues/2133
很奇怪 按照stackoverflow和github两个解答方法都弄不出来,不知为什么那个文件就是没有被babel-jest transform
第一个link的答案是他们团队的人写的好像 但第一个link情况跟我们不一样毕竟他是在node下运行的
第一个link的答案是他们团队的人写的好像 但第一个link情况跟我们不一样毕竟他是在node下运行的
"transformIgnorePatterns": [ "[/\\]node_modules[/\\].+\.(js|jsx|ts|tsx)$" ] 同样也不行,没找到答案
第一个link的答案是他们团队的人写的好像 但第一个link情况跟我们不一样毕竟他是在node下运行的
"transformIgnorePatterns": [ "[/\]node_modules[/\].+.(js|jsx|ts|tsx)$" ] 同样也不行,没找到答案
嗯我再想想 明明逻辑和方法思路是对的 不知为什么不行
PASS src/App.test.js (9.579s)
√ renders root component with no error (146ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 12.201s
Ran all test suites.
执行 npm run test 或 yarn test
错误信息如下:
FAIL src/App.test.js ● Test suite failed to run
Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 4.231s Ran all test suites.
Watch Usage: Press w to show more