提交 d8922296 编写于 作者: A Andreas Opferkuch 提交者: Tim Neutkens

Simplify config in with-jest-typescript example (#9664)

jest didn't include TS extensions by default, now it does.
Plus some minor adjustments.
上级 26a6a373
const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'
module.exports = {
setupFiles: ['<rootDir>/jest.setup.js'],
testRegex: TEST_REGEX,
transform: {
'^.+\\.tsx?$': 'babel-jest',
},
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
collectCoverage: false,
}
......@@ -13,14 +13,14 @@
"react-dom": "^16.8.4"
},
"devDependencies": {
"@types/jest": "^24.0.11",
"@types/jest": "^24.0.23",
"@types/react": "^16.8.8",
"@types/react-dom": "^16.8.2",
"babel-core": "^6.26.3",
"babel-jest": "^24.5.0",
"babel-jest": "^24.9.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2",
"jest": "^24.5.0",
"jest": "^24.9.0",
"react-addons-test-utils": "^15.6.2",
"react-test-renderer": "^16.8.4",
"typescript": "^3.3.3333"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册