14 Star 58 Fork 19

antv-g2plot / antv-g2plot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 843 Bytes
一键复制 编辑 原始数据 按行查看 历史
visiky 提交于 2022-12-10 21:51 . chore: update deploy action (#3417)
// 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 = {
runner: 'jest-electron/runner',
testEnvironment: 'jest-electron/environment',
testTimeout: 30000,
setupFilesAfterEnv: ['jest-extended', './jest.setup.js'],
preset: 'ts-jest',
collectCoverage: false,
collectCoverageFrom: [
'src/**/*.ts',
'!**/node_modules/**',
'!**/vendor/**',
'!**/_template/**',
'!**/interactions/**',
'!**/venn/layout/**',
],
testRegex: '/__tests__/.*-spec\\.ts?$',
moduleNameMapper: {
'lodash-es': 'lodash',
'd3-color': 'd3-color/dist/d3-color.min.js',
'd3-interpolate': 'd3-interpolate/dist/d3-interpolate.min.js',
},
};
JavaScript
1
https://gitee.com/antv-g2plot/antv-g2plot.git
git@gitee.com:antv-g2plot/antv-g2plot.git
antv-g2plot
antv-g2plot
antv-g2plot
master

搜索帮助