diff --git a/jest.config.js b/jest.config.js index 79e901f14..f6ee5e1cd 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,14 +1,8 @@ module.exports = { - "preset": "jest-preset-angular", - "resetMocks": true, - "setupFilesAfterEnv": [ - "/src/setup-jest.ts" - ], - "testMatch": [ - "**/+(*.)+(spec|test).+(ts)?(x)" - ], - "coverageReporters": [ - "html", - "lcov" - ] -}; \ No newline at end of file + preset: 'jest-preset-angular', + resetMocks: true, + setupFilesAfterEnv: ['/src/setup-jest.ts'], + testMatch: ['**/+(*.)+(spec|test).+(ts)?(x)'], + coverageReporters: ['html', 'lcov'], + transformIgnorePatterns: ['node_modules/(?!.*.mjs$|@datorama/akita)'], +}; diff --git a/tsconfig.json b/tsconfig.json index bfd1ec653..9aacd9697 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es5", + "target": "es6", "typeRoots": ["node_modules/@types"], "lib": ["es2017", "es2016", "es2015", "dom"], "resolveJsonModule": true,