Skip to content

Instantly share code, notes, and snippets.

@phantomk
Created October 12, 2018 17:04
Show Gist options
  • Select an option

  • Save phantomk/1cd451073ef354f0bb9d974c7adb87d1 to your computer and use it in GitHub Desktop.

Select an option

Save phantomk/1cd451073ef354f0bb9d974c7adb87d1 to your computer and use it in GitHub Desktop.
ts-jest config
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
coverageDirectory: './coverage',
roots: [
'./test'
]
};
{
"scripts": {
"test": "jest --coverage",
"jest": "ts-jest config:init"
},
"devDependencies": {
"@types/jest": "^23.3.5",
"jest": "^23.6.0",
"ts-jest": "^23.10.0",
"typescript": "^3.0.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment