mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
* LGraph ES6 class conversion * Add compatibility to prototype extension * Add jest test action --------- Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
24 lines
494 B
TypeScript
24 lines
494 B
TypeScript
import type { JestConfigWithTsJest } from 'ts-jest'
|
|
|
|
const jestConfig: JestConfigWithTsJest = {
|
|
testMatch: ['**/test/**/*.test.ts'],
|
|
testEnvironment: 'jsdom',
|
|
moduleFileExtensions: ['js', 'jsx', 'json', 'ts'],
|
|
transform: {
|
|
'^.+\\.m?[tj]sx?$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: './tsconfig.json',
|
|
}
|
|
]
|
|
},
|
|
clearMocks: true,
|
|
resetModules: true,
|
|
testTimeout: 10000,
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
}
|
|
|
|
export default jestConfig
|