169 Star 1.1K Fork 281

GVPantv / L7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.e2e.config.ts 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
import type { Config } from 'jest';
const sharedConfig: Partial<Config> = {
transform: {
// use typescript to convert from esm to cjs
'[.](m|c)?(ts|js)(x)?$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
isolatedModules: true,
},
],
'^.+.(glsl)$': 'jest-text-transformer',
// '\\.[jt]sx?$': 'esbuild-jest',
},
// any tests that operate on dist files shouldn't compile them again.
transformIgnorePatterns: ['<rootDir>/dist', '^.+\\.js$'],
modulePathIgnorePatterns: ['<rootDir>/dist'],
moduleNameMapper: {
'@antv/l7-(.+)$': '<rootDir>packages/$1/src',
'^.+.(css)$': 'jest-text-transformer',
},
};
const config: Config = {
testTimeout: 100000,
globalSetup: './__tests__/integration/preset/setup.js',
globalTeardown: './__tests__/integration/preset/teardown.js',
testEnvironment: './__tests__/integration/preset/environment.js',
testMatch: ['<rootDir>/__tests__/integration/*.spec.ts'],
coverageReporters: ['html', 'lcov', 'clover'],
coveragePathIgnorePatterns: ['/node_modules/', '/iconfont/'],
coverageThreshold: {
global: {
branches: 9,
functions: 11.5,
lines: 15,
statements: 15,
},
},
...sharedConfig,
};
export default config;
TypeScript
1
https://gitee.com/antv/L7.git
git@gitee.com:antv/L7.git
antv
L7
L7
master

搜索帮助