mirror of https://github.com/aminya/setup-cpp
test: resolve js files from ts files for tests
This commit is contained in:
parent
382285ae64
commit
fce9cac0b5
|
@ -8,6 +8,10 @@ const jestConfig: Config = {
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.(t|j)sx?$": "@swc/jest",
|
"^.+\\.(t|j)sx?$": "@swc/jest",
|
||||||
},
|
},
|
||||||
|
// resolve js files from ts files
|
||||||
|
moduleNameMapper: {
|
||||||
|
"(.+)\\.js": "$1",
|
||||||
|
},
|
||||||
// coverage
|
// coverage
|
||||||
collectCoverageFrom: ["src/**/*.{ts,tsx,js,jsx}"],
|
collectCoverageFrom: ["src/**/*.{ts,tsx,js,jsx}"],
|
||||||
coveragePathIgnorePatterns: ["assets", ".css.d.ts"],
|
coveragePathIgnorePatterns: ["assets", ".css.d.ts"],
|
||||||
|
|
Loading…
Reference in New Issue