- add jest, ts-jest, supertest, and related dev dependencies - add test scripts (test, test:debug, test:watch) to package.json - add jest.config.js with ts-jest transform and module name mappers - add controller specs for auth, browser, environment, mcp, scenario, session - add mocks for jsdom, playwright, and readability - add test/tsconfig.json and exclude test dir from main tsconfig
7 lines
133 B
TypeScript
7 lines
133 B
TypeScript
export class JSDOM {
|
|
constructor(public html: string, public options?: any) {}
|
|
get window() {
|
|
return { document: {} };
|
|
}
|
|
}
|