mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
22 lines
554 B
TypeScript
22 lines
554 B
TypeScript
import type { JestConfigWithTsJest } from "ts-jest";
|
|
|
|
const jestConfig: JestConfigWithTsJest = {
|
|
testEnvironment: "jsdom",
|
|
transform: {
|
|
'^.+\\.m?[tj]sx?$': ["ts-jest", {
|
|
tsconfig: "./tsconfig.json",
|
|
babelConfig: "./babel.config.json",
|
|
}],
|
|
},
|
|
setupFiles: ["./tests-ui/globalSetup.ts"],
|
|
setupFilesAfterEnv: ["./tests-ui/afterSetup.ts"],
|
|
clearMocks: true,
|
|
resetModules: true,
|
|
testTimeout: 10000,
|
|
moduleNameMapper: {
|
|
"^src/(.*)$": "<rootDir>/src/$1",
|
|
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
},
|
|
};
|
|
|
|
export default jestConfig; |