view 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 source

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',
    }
  }
};