Explorar el Código

test: fix test ts target

Evan You hace 5 años
padre
commit
00bb76b69c
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      jest.config.js

+ 6 - 1
jest.config.js

@@ -13,7 +13,12 @@ module.exports = {
     __FEATURE_OPTIONS_API__: true,
     __FEATURE_OPTIONS_API__: true,
     __FEATURE_SUSPENSE__: true,
     __FEATURE_SUSPENSE__: true,
     __FEATURE_PROD_DEVTOOLS__: false,
     __FEATURE_PROD_DEVTOOLS__: false,
-    __COMPAT__: true
+    __COMPAT__: true,
+    'ts-jest': {
+      tsconfig: {
+        target: 'esnext'
+      }
+    }
   },
   },
   coverageDirectory: 'coverage',
   coverageDirectory: 'coverage',
   coverageReporters: ['html', 'lcov', 'text'],
   coverageReporters: ['html', 'lcov', 'text'],