We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79676ea commit c9c299dCopy full SHA for c9c299d
packages/utils/jest.config.js
@@ -1 +1,9 @@
1
-module.exports = require('../../jest/jest.config.js');
+const baseConfig = require('../../jest/jest.config.js');
2
+
3
+module.exports = {
4
+ ...baseConfig,
5
+ transform: {
6
+ '^.+\\.ts$': 'ts-jest',
7
+ '^.+\\.js$': 'ts-jest',
8
+ },
9
+};
packages/utils/tsconfig.test.json
@@ -5,8 +5,10 @@
"compilerOptions": {
// should include all types from `./tsconfig.json` plus types for all test frameworks used
- "types": ["node", "jest"]
+ "types": ["node", "jest"],
10
// other package-specific, test-specific options
11
+ // this is necessary in order to be able to handle the buildPolyfills `originals.js` which is used for testing
12
+ "allowJs": true
13
}
14
0 commit comments