mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Started Adding Jest and Tests
This commit is contained in:
parent
542405be98
commit
64c366998e
9 changed files with 3047 additions and 59 deletions
18
jest.config.ts
Normal file
18
jest.config.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
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);
|
Loading…
Add table
Add a link
Reference in a new issue