Skip to content

Commit

Permalink
fix: jest config & lock vendor version
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX committed Jan 23, 2025
1 parent eb18fa9 commit 738588c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 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', 'chroma-js']
const esm = ['internmap', 'd3-*', 'lodash-es', 'chroma-js', '@antv/*']
.map((d) => `_${d}|${d}`)
.join('|');

Expand All @@ -21,5 +21,5 @@ module.exports = {
collectCoverage: false,
testRegex: '(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$',
// Transform esm to cjs.
transformIgnorePatterns: [`<rootDir>/node_modules/(?!(?:.pnpm/)?(${esm}))`]
transformIgnorePatterns: [`<rootDir>/node_modules/(?!(?:.pnpm/)?(${esm}))`],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@antv/g-plugin-dragndrop": "^2.0.22",
"@antv/scale": "^0.4.16",
"@antv/util": "^3.3.10",
"@antv/vendor": "^1.0.2",
"@antv/vendor": "1.0.6",
"flru": "^1.0.2",
"fmin": "0.0.2",
"pdfast": "^0.2.0"
Expand All @@ -93,7 +93,7 @@
"@antv/g2-extension-3d": "^0.1.6",
"@antv/g2-extension-ava": "^0.1.1",
"@antv/g2-extension-plot": "^0.1.2",
"@antv/vendor": "^1.0.2",
"@antv/vendor": "1.0.6",
"@antv/translator": "^1.0.1",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^17.8.1",
Expand Down

0 comments on commit 738588c

Please sign in to comment.