1 Star 0 Fork 59

guopj2014 / G2

forked from antv / G2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 799 Bytes
一键复制 编辑 原始数据 按行查看 历史
MiniPear 提交于 2023-03-20 17:49 . feat(legend): emit legend filter (#4799)
// Installing third-party modules by tnpm or cnpm will name modules with underscore as prefix.
// In this case _{module} is also necessary.
const esm = ['internmap', 'd3-*', 'lodash-es']
.map((d) => `_${d}|${d}`)
.join('|');
module.exports = {
testTimeout: 100000,
preset: 'ts-jest/presets/js-with-ts',
globals: {
'ts-jest': {
tsconfig: {
target: 'esnext', // Increase test coverage.
allowJs: true,
sourceMap: true,
},
},
},
collectCoverageFrom: ['src/**/*.ts', '!**/d3-sankey/**', '!**/d3-cloud/**'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
collectCoverage: false,
testRegex: '(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$',
// Transform esm to cjs.
transformIgnorePatterns: [`<rootDir>/node_modules/(?!(${esm}))`],
};
JavaScript
1
https://gitee.com/guopj/g2.git
git@gitee.com:guopj/g2.git
guopj
g2
G2
v5

搜索帮助