12 lines
386 B
TypeScript
12 lines
386 B
TypeScript
|
|
// services/api/jest.e2e.config.ts —— e2e(test/*.e2e-spec.ts),复用单测配置,
|
|||
|
|
// 仅切换 testMatch;隔离工具见 test/reset.ts(每个 spec 的 beforeAll 调用)。
|
|||
|
|
import type { Config } from 'jest';
|
|||
|
|
import baseConfig from './jest.config';
|
|||
|
|
|
|||
|
|
const config: Config = {
|
|||
|
|
...baseConfig,
|
|||
|
|
testMatch: ['<rootDir>/test/**/*.e2e-spec.ts'],
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
export default config;
|