[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(test): update cli babel check
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Sep 20, 2022
1 parent 9364a0e commit fe4572c
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions packages/taro-cli/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
const { jsWithTs: tsjPreset } = require('ts-jest/presets')

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'jsx', 'node'],
testMatch: ['**/__tests__/?(*.)+(spec|test).[jt]s?(x)'],
globals: {
'ts-jest': {
diagnostics: false
}
}
},
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'jsx', 'node'],
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/__tests__/?(*.)+(spec|test).[jt]s?(x)'],
testTimeout: 60000,
transform: {
'^.+\\.jsx?$': [ require.resolve('babel-jest'), { rootMode: 'upward' } ],
'^.+\\.tsx?$': 'ts-jest',
...tsjPreset.transform
},
transformIgnorePatterns: [
'node_modules',
],
}

0 comments on commit fe4572c

Please sign in to comment.