diff --git a/.jest.js b/.jest.js index f08c7b35be..47748ad590 100644 --- a/.jest.js +++ b/.jest.js @@ -30,9 +30,9 @@ module.exports = { 'node', ], transform: { - '\\.tsx?$': './node_modules/typescript-babel-jest', - '\\.js$': './node_modules/babel-jest', - '\\.md$': './node_modules/antd-demo-jest', + '\\.tsx?$': './node_modules/antd-tools/lib/jest/codePreprocessor', + '\\.js$': './node_modules/antd-tools/lib/jest/codePreprocessor', + '\\.md$': './node_modules/antd-tools/lib/jest/demoPreprocessor', }, testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$', collectCoverageFrom: [ diff --git a/.jest.node.js b/.jest.node.js index 43dc85659a..60a3dd2e98 100644 --- a/.jest.node.js +++ b/.jest.node.js @@ -9,9 +9,9 @@ module.exports = { 'md', ], transform: { - '\\.tsx?$': './node_modules/typescript-babel-jest', - '\\.js$': './node_modules/babel-jest', - '\\.md$': './node_modules/antd-demo-jest', + '\\.tsx?$': './node_modules/antd-tools/lib/jest/codePreprocessor', + '\\.js$': './node_modules/antd-tools/lib/jest/codePreprocessor', + '\\.md$': './node_modules/antd-tools/lib/jest/demoPreprocessor', }, testRegex: 'demo\\.test\\.js$', testEnvironment: 'node', diff --git a/package.json b/package.json index b4650797b2..0eaceaf7c4 100644 --- a/package.json +++ b/package.json @@ -80,11 +80,9 @@ "devDependencies": { "@types/react": "^15.0.38", "@types/react-dom": "~0.14.18", - "antd-demo-jest": "^1.3.0", "antd-tools": "~1.7.0", "babel-cli": "^6.18.0", "babel-eslint": "^7.1.0", - "babel-jest": "^20.0.3", "babel-plugin-import": "^1.0.0", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.18.0", @@ -139,7 +137,6 @@ "stylelint": "^8.0.0", "stylelint-config-standard": "^17.0.0", "typescript": "~2.4.2", - "typescript-babel-jest": "^1.0.2", "values.js": "^1.0.3", "xhr2": "^0.1.3" },