tasko/jest.config.ts

19 lines
433 B
TypeScript
Raw Permalink Normal View History

2024-12-28 22:36:50 +00:00
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);