17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import type { Config } from '@jest/types';
|
|
import {resolve} from "path"
|
|
// Sync object
|
|
const config: Config.InitialOptions = {
|
|
verbose: true,
|
|
transform: {
|
|
"^.+.tsx?$": ["ts-jest", {}],
|
|
},
|
|
testEnvironment: "node",
|
|
// runner: "jest-runner-tsc",
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': "<rootDir>/$1"
|
|
},
|
|
resolver: ""
|
|
};
|
|
|
|
export default config; |