Skip to content

Commit bbcb8d1

Browse files
fix error SyntaxError: Unexpected token 'export'
1 parent 8daf5c8 commit bbcb8d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jest.config.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ const config: Config = {
1313
'^.+\\.svg\\?react$': 'jest-svg-transformer',
1414
'^.+\\.(css|less|scss)$': 'identity-obj-proxy',
1515
},
16-
// if need to test with AG Grid, see https://www.ag-grid.com/react-data-grid/testing/
17-
transformIgnorePatterns: ['node_modules/(?!@gridsuite/commons-ui)'], // transform from ESM
16+
// transform from ESM
17+
transformIgnorePatterns: [
18+
// if need to test with AG Grid, see https://www.ag-grid.com/react-data-grid/testing/
19+
'/node_modules/(?!@gridsuite/commons-ui)',
20+
// also a problem with rect-dnd: https://github.com/react-dnd/react-dnd/issues/3443
21+
'/node_modules/(?!react-dnd|@react-dnd|dnd-core|core-dnd|react-dnd-html5-backend)',
22+
],
1823
moduleDirectories: ['node_modules', 'src'], // to allow absolute path from ./src
1924
setupFiles: ['<rootDir>/jest.setup.ts'],
2025
};

0 commit comments

Comments
 (0)