mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
44 lines
1.8 KiB
TypeScript
44 lines
1.8 KiB
TypeScript
import type { Config } from '@jest/types';
|
|
|
|
const config: Config.InitialOptions = {
|
|
projects: [
|
|
{
|
|
displayName: 'UNIT',
|
|
testEnvironment: 'node',
|
|
testMatch: ['<rootDir>/src/**/*.spec.ts', '<rootDir>/test/index.spec.ts', '<rootDir>/bin/index.spec.js'],
|
|
moduleFileExtensions: ['js', 'ts', 'd.ts'],
|
|
moduleNameMapper: {
|
|
'\\.hbs$': '<rootDir>/src/templates/__mocks__/index.ts',
|
|
},
|
|
},
|
|
{
|
|
displayName: 'E2E',
|
|
testEnvironment: 'node',
|
|
testMatch: [
|
|
'<rootDir>/test/e2e/v2.fetch.spec.ts',
|
|
'<rootDir>/test/e2e/v2.xhr.spec.ts',
|
|
'<rootDir>/test/e2e/v2.node.spec.ts',
|
|
'<rootDir>/test/e2e/v2.axios.spec.ts',
|
|
'<rootDir>/test/e2e/v2.babel.spec.ts',
|
|
'<rootDir>/test/e2e/v2.angular.spec.ts',
|
|
'<rootDir>/test/e2e/v3.fetch.spec.ts',
|
|
'<rootDir>/test/e2e/v3.xhr.spec.ts',
|
|
'<rootDir>/test/e2e/v3.node.spec.ts',
|
|
'<rootDir>/test/e2e/v3.axios.spec.ts',
|
|
'<rootDir>/test/e2e/v3.babel.spec.ts',
|
|
'<rootDir>/test/e2e/v3.angular.spec.ts',
|
|
'<rootDir>/test/e2e/client.fetch.spec.ts',
|
|
'<rootDir>/test/e2e/client.xhr.spec.ts',
|
|
'<rootDir>/test/e2e/client.node.spec.ts',
|
|
'<rootDir>/test/e2e/client.axios.spec.ts',
|
|
'<rootDir>/test/e2e/client.babel.spec.ts',
|
|
'<rootDir>/test/e2e/client.angular.spec.ts',
|
|
],
|
|
modulePathIgnorePatterns: ['<rootDir>/test/e2e/generated'],
|
|
},
|
|
],
|
|
collectCoverageFrom: ['<rootDir>/src/**/*.ts', '!<rootDir>/src/**/*.d.ts', '!<rootDir>/bin', '!<rootDir>/dist'],
|
|
};
|
|
|
|
export default config;
|