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: {
|
||||
"^.+\\.(t|j)sx?$": "@swc/jest",
|
||||
},
|
||||
// resolve js files from ts files
|
||||
moduleNameMapper: {
|
||||
"(.+)\\.js": "$1",
|
||||
},
|
||||
// coverage
|
||||
collectCoverageFrom: ["src/**/*.{ts,tsx,js,jsx}"],
|
||||
coveragePathIgnorePatterns: ["assets", ".css.d.ts"],
|
||||
|
|
Loading…
Reference in New Issue