File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1- import type { InitialOptionsTsJest } from "ts-jest" ;
1+ import type { JestConfigWithTsJest } from "ts-jest" ;
22
3- const config : InitialOptionsTsJest = {
3+ const config : JestConfigWithTsJest = {
44 preset : "ts-jest" ,
55 coverageDirectory : "coverage" ,
66 coverageReporters : [ "html" , "lcov" , "text" ] ,
@@ -10,19 +10,15 @@ const config: InitialOptionsTsJest = {
1010 "^purgecss-from-html$" : "<rootDir>/../purgecss-from-html/src" ,
1111 } ,
1212 testMatch : [ "<rootDir>/__tests__/**/*test.ts" ] ,
13- globals : {
14- "ts-jest" : {
15- tsconfig : {
16- types : [ "jest" ] ,
17- } ,
18- } ,
13+ transform : {
14+ "^.+.tsx?$" : [ "ts-jest" , { } ] ,
1915 } ,
2016} ;
2117
2218export function createConfig (
2319 rootDir : string ,
2420 displayName : string ,
25- ) : InitialOptionsTsJest {
21+ ) : JestConfigWithTsJest {
2622 return {
2723 ...config ,
2824 rootDir,
You can’t perform that action at this time.
0 commit comments