Browse Source

test: fix test ts target

Evan You 5 years ago
parent
commit
00bb76b69c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      jest.config.js

+ 6 - 1
jest.config.js

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