Skip to content

Commit f59282d

Browse files
authored
Switch to yarn. Update jest (microsoft#10)
* Switch to yarn * Update jest
1 parent 3fa3816 commit f59282d

File tree

4 files changed

+4109
-6316
lines changed

4 files changed

+4109
-6316
lines changed

jest.config.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
clearMocks: true,
3+
coverageDirectory: "coverage",
4+
collectCoverageFrom: [
5+
"src/**/*.ts",
6+
"tests/**/*.ts"
7+
],
8+
coveragePathIgnorePatterns: [
9+
"/node_modules/",
10+
"types.ts"
11+
],
12+
globals: {
13+
"ts-jest": {
14+
tsConfigFile: "tests/tsconfig.json",
15+
skipBabel: true
16+
}
17+
},
18+
moduleFileExtensions: [
19+
"ts",
20+
"tsx",
21+
"js"
22+
],
23+
testEnvironment: "node",
24+
testRegex: "/tests/.*\\.test\\.tsx?$",
25+
transform: {
26+
"^.+\\.tsx?$": "ts-jest"
27+
}
28+
};

0 commit comments

Comments
 (0)