1 Star 0 Fork 0

kbZero/micro-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
仿生狮子 提交于 2023-11-09 01:07 . chore: enable scoped css testing
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
coverageReporters: [
'json',
'text',
'lcov',
'clover',
'html'
],
moduleFileExtensions: [
'js',
'json',
'jsx',
'ts',
'tsx'
],
transformIgnorePatterns: [
'/node_modules/',
],
testPathIgnorePatterns: [
'/dev/',
'/scripts/',
],
coveragePathIgnorePatterns: [
'/scripts/',
'/__tests__/',
],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
rootDir: __dirname,
testMatch: [
// '<rootDir>/src/__tests__/**/*.test.[jt]s?(x)'
'<rootDir>/src/__tests__/main.test.ts',
'<rootDir>/src/__tests__/create_app.test.ts',
'<rootDir>/src/__tests__/micro_app_element.test.ts',
'<rootDir>/src/__tests__/micro_app.test.ts',
'<rootDir>/src/__tests__/unit/utils.test.ts',
'<rootDir>/src/__tests__/interact/index.test.ts',
'<rootDir>/src/__tests__/source/scoped_css.test.ts',
],
globals: {
__DEV__: true,
__TEST__: true,
'ts-jest': {
tsconfig: {
target: 'ES2017',
noUnusedLocals: true,
strictNullChecks: true,
noUnusedParameters: true,
experimentalDecorators: true,
allowSyntheticDefaultImports: true,
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/kbzero/micro-app.git
git@gitee.com:kbzero/micro-app.git
kbzero
micro-app
micro-app
dev

搜索帮助