You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAIL tests/Card.test.js
● Test suite failed to run
Cannot find module './weapp/index' from 'index.js'
Require stack:
/Users/luna.zhao/privatespace/mono-repo-taro-project/packages/ui/dist/index.js
.temp/component/Card.js
tests/Card.test.js
However, Jest was able to find:
'weapp/index.ts'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'jsx', 'json'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring
6 | module.exports.default = module.exports
7 | } else {
> 8 | module.exports = require('./weapp/index')
| ^
9 | module.exports.default = module.exports
10 | }
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:299:11)
at Object.<anonymous> (../ui/dist/index.js:8:32)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.704s
Ran all test suites.
相关平台
H5
复现仓库
https://github.com/luna-zhao-8/mono-repo-taro-project
浏览器版本: Chrome 83
使用框架: React
复现步骤
yarn build
yarn test
期望结果
执行h5环境,测试通过
实际结果
环境信息
The text was updated successfully, but these errors were encountered: