mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-07 16:35:15 +08:00
feat: add monorepo
This commit is contained in:
21
packages/plugin-ui/jest.config.js
Normal file
21
packages/plugin-ui/jest.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
displayName: 'plugin-ui',
|
||||
preset: '../../jest.preset.js',
|
||||
transform: {
|
||||
'^.+.vue$': 'vue3-jest',
|
||||
'.+.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
|
||||
'jest-transform-stub',
|
||||
'^.+.tsx?$': 'ts-jest',
|
||||
},
|
||||
moduleFileExtensions: ['ts', 'tsx', 'vue', 'js', 'json'],
|
||||
coverageDirectory: '../../coverage/packages/plugin-ui',
|
||||
snapshotSerializers: ['jest-serializer-vue'],
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: 'packages/plugin-ui/tsconfig.spec.json',
|
||||
},
|
||||
'vue-jest': {
|
||||
tsConfig: 'packages/plugin-ui/tsconfig.spec.json',
|
||||
},
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user