【发布时间】:2022-05-09 20:25:44
【问题描述】:
我的 jest.config.js 中有以下内容
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'jsdom'
};
但是当我运行 npm test 时它被忽略了。有人可以帮忙吗?
这是我的 package.json
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
【问题讨论】: