diff jest.config.js @ 17:94629c39681c

trying to do ts+jest. WIP
author drewp@bigasterisk.com
date Thu, 12 Dec 2019 22:52:57 -0800
parents
children 45ed53428e74 db0e9cbf52e5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jest.config.js	Thu Dec 12 22:52:57 2019 -0800
@@ -0,0 +1,14 @@
+module.exports = {
+  transform: {
+    "^.+\\.tsx?$": "ts-jest"
+  },
+  testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
+  testPathIgnorePatterns: ["/lib/", "/node_modules/"],
+  moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
+  collectCoverage: true,
+  globals: {
+    'ts-jest': {
+      packageJson: 'package.json',
+    }
+  }
+};
\ No newline at end of file