Compare commits

...

4 Commits

Author SHA1 Message Date
afc163
e1dcf2fc74 Merge branch 'master' into copilot/fix-ci-issues
Signed-off-by: afc163 <afc163@gmail.com>
2026-02-06 13:39:03 +08:00
copilot-swe-agent[bot]
b8f06104ca fix: add mjs file extension support to node test config
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
2026-02-06 02:39:17 +00:00
copilot-swe-agent[bot]
c5425a0812 fix: add @csstools to Jest transform whitelist to fix CI parse error
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
2026-02-05 15:55:16 +00:00
copilot-swe-agent[bot]
e981eff147 Initial plan 2026-02-05 15:53:15 +00:00
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ const compileModules = [
'countup.js',
'.pnpm',
'@asamuzakjp/css-color',
'@csstools',
'@rc-component',
// jsdom 27+ depends on ESM parse5, need transform
'parse5',

View File

@@ -3,7 +3,7 @@ const { moduleNameMapper, transformIgnorePatterns } = require('./.jest');
module.exports = {
setupFiles: ['./tests/setup.ts'],
setupFilesAfterEnv: ['./tests/setupAfterEnv.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'md'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'mjs', 'md'],
moduleNameMapper,
transform: {
'^.+\\.(ts|tsx|js|mjs)$': './node_modules/@ant-design/tools/lib/jest/codePreprocessor',