mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-30 16:43:37 +00:00
18 lines
433 B
TypeScript
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);
|