jest.e2e.config.js•527 B
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testMatch: ['**/*.spec.e2e.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
collectCoverage: false,
verbose: true,
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
testTimeout: 30000, // Longer timeout for E2E tests
passWithNoTests: true, // Allow tests to pass when no tests exist yet
};