Skip to content

Commit

Permalink
refactor: remove unused ts-jest (apache#17996)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored and shcoderAlex committed Feb 7, 2022
1 parent 6f5d11f commit b206d40
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 331 deletions.
17 changes: 0 additions & 17 deletions superset-frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,9 @@ module.exports = {
'dist/',
],
coverageReporters: ['lcov', 'json-summary', 'html'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
// ts-jest doesn't work with `--coverage`. @superset-ui/core should
// 100% coverage, so we use babel-jest in packages and plugins.
'(plugins|packages)\\/.+\\.tsx?$': 'babel-jest',
'(((?!(plugins|packages)).)*)\\/.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
snapshotSerializers: ['@emotion/jest/enzyme-serializer'],
globals: {
'ts-jest': {
babelConfig: true,
// todo: duo to packages/**/test and plugins/**/test lack of type checking
// turning off checking in Jest.
// https://kulshekhar.github.io/ts-jest/docs/getting-started/options/isolatedModules
isolatedModules: true,
diagnostics: {
warnOnly: true,
},
},
__DEV__: true,
caches: true,
},
Expand Down
Loading

0 comments on commit b206d40

Please sign in to comment.