This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/jest.config.js

38 lines
911 B
JavaScript
Raw Normal View History

module.exports = {
globals: {
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
'ts-jest': {
diagnostics: {
2021-07-05 15:11:32 +08:00
ignoreCodes: [151001]
}
}
},
testEnvironment: 'jsdom',
transform: {
'^.+\\.vue$': 'vue-jest',
'^.+\\.(t|j)sx?$': [
'babel-jest', {
presets: [
[
'@babel/preset-env',
{
targets: {
2021-07-05 15:11:32 +08:00
node: true
}
}
],
2021-07-05 15:11:32 +08:00
'@babel/preset-typescript'
],
plugins: [
'@vue/babel-plugin-jsx',
2021-07-05 15:11:32 +08:00
'@babel/plugin-proposal-class-properties'
]
}
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
// u can change this option to a more specific folder for test single component or util when dev
// for example, ['<rootDir>/packages/input']
2021-07-05 15:11:32 +08:00
roots: ['<rootDir>']
}