Skip to content

Commit a9a3df0

Browse files
screendrivercpojer
authored andcommitted
Updated TypeScript documentation (#5149)
1 parent 9cd00e6 commit a9a3df0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,16 @@ then modify your `package.json` so the `jest` section looks something like:
127127
{
128128
"jest": {
129129
"transform": {
130-
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
130+
"^.+\\.tsx?$": "ts-jest"
131131
},
132-
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
132+
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
133133
"moduleFileExtensions": [
134134
"ts",
135135
"tsx",
136136
"js",
137-
"json"
137+
"jsx",
138+
"json",
139+
"node"
138140
]
139141
}
140142
}

0 commit comments

Comments
 (0)