import type { Config } from '@jest/types'; const config: Config.InitialOptions = { projects: [ { displayName: 'UNIT', testEnvironment: 'node', testMatch: ['/src/**/*.spec.ts', '/test/index.spec.ts'], moduleFileExtensions: ['js', 'ts', 'd.ts'], moduleNameMapper: { '\\.hbs$': '/src/templates/__mocks__/index.ts', }, }, { displayName: 'E2E', testEnvironment: 'node', testMatch: [ '/test/e2e/v2.fetch.spec.ts', '/test/e2e/v2.xhr.spec.ts', '/test/e2e/v2.node.spec.ts', '/test/e2e/v2.axios.spec.ts', '/test/e2e/v2.babel.spec.ts', '/test/e2e/v3.fetch.spec.ts', '/test/e2e/v3.xhr.spec.ts', '/test/e2e/v3.node.spec.ts', '/test/e2e/v3.axios.spec.ts', '/test/e2e/v3.babel.spec.ts', '/test/e2e/client.fetch.spec.ts', '/test/e2e/client.xhr.spec.ts', '/test/e2e/client.node.spec.ts', '/test/e2e/client.axios.spec.ts', '/test/e2e/client.babel.spec.ts', ], testPathIgnorePatterns: ['/test/e2e/generated'], }, ], collectCoverageFrom: ['/src/**/*.ts', '!/src/**/*.d.ts', '!/bin', '!/dist'], }; export default config;