tasko/jest.config.ts
2024-12-28 17:36:50 -05:00

18 lines
433 B
TypeScript

import type { Config } from 'jest';
import nextJest from 'next/jest.js';
const createJestConfig = nextJest({
dir: './',
});
const config: Config = {
coverageProvider: 'v8',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'content-collections': '<rootDir>/.content-collections/generated',
},
};
export default createJestConfig(config);