mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 09:03:36 +00:00
19 lines
433 B
TypeScript
19 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);
|