mirror of https://github.com/aminya/setup-cpp
18 lines
455 B
TypeScript
18 lines
455 B
TypeScript
import type { Config } from "jest"
|
|
|
|
const jestConfig: Config = {
|
|
testMatch: ["**/*.test.ts"],
|
|
testEnvironment: "node",
|
|
extensionsToTreatAsEsm: [".ts", ".tsx", ".jsx"],
|
|
transformIgnorePatterns: [], // transform node_modules
|
|
transform: {
|
|
"^.+\\.(t|j)sx?$": "@swc/jest",
|
|
},
|
|
// coverage
|
|
collectCoverageFrom: ["src/**/*.{ts,tsx,js,jsx}"],
|
|
coveragePathIgnorePatterns: ["assets", ".css.d.ts"],
|
|
verbose: true,
|
|
}
|
|
|
|
export default jestConfig
|