1 Star 0 Fork 278

rorgent / L7

forked from 高飞 / L7 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
// "preset": "jest-puppeteer",
// "globalSetup": "jest-environment-puppeteer/setup",
// "globalTeardown": "jest-environment-puppeteer/teardown",
// "testEnvironment": "jest-environment-puppeteer",
// runner: 'jest-electron/runner',
// testEnvironment: 'jest-electron/environment',
// preset: 'ts-jest',
// clearMocks: true,
// collectCoverageFrom: [
// 'packages/**/*.{ts,tsx}',
// '!**/node_modules/**',
// '!**/__tests__/**',
// '!**/*.d.ts'
// ],
// coverageDirectory: 'coverage',
// coverageReporters: [ 'text', 'clover' ],
// coverageThreshold: {
// global: {
// branches: 80,
// functions: 80,
// lines: 80,
// statements: 80
// }
// },
globals: {
'ts-jest': {
// @see https://github.com/kulshekhar/ts-jest/issues/933#issuecomment-479821844
babelConfig: require('./babel.config.js'),
},
},
moduleFileExtensions: [ 'ts', 'tsx', 'js' ],
modulePathIgnorePatterns: [ 'dist' ],
moduleNameMapper: {
'@antv/l7-(.+)$': '<rootDir>packages/$1/src'
},
notify: true,
notifyMode: 'always',
roots: [ '<rootDir>packages' ],
testMatch: [ '**/__tests__/*.spec.+(ts|tsx|js)', '**/*.test.+(ts|tsx|js)', '**/__tests__/*/*.spec.+(ts|tsx|js)' ],
transform: {
// '^.+\\.(ts|tsx)$': 'ts-jest',
// @see https://github.com/kulshekhar/ts-jest/issues/1130
'^.+\\.(ts|tsx)$': 'babel-jest'
},
setupFilesAfterEnv: [ '<rootDir>jest/setupTests.ts' ],
snapshotSerializers: [ 'enzyme-to-json/serializer' ]
};
TypeScript
1
https://gitee.com/rorgent/L7.git
git@gitee.com:rorgent/L7.git
rorgent
L7
L7
master

搜索帮助