mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-02 21:19:13 +00:00
v0.1.0
This commit is contained in:
16
frontend/jest.config.js
Normal file
16
frontend/jest.config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const nextJest = require('next/jest');
|
||||
|
||||
const createJestConfig = nextJest({
|
||||
dir: './',
|
||||
});
|
||||
|
||||
const customJestConfig = {
|
||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
testEnvironment: 'jest-environment-jsdom',
|
||||
moduleNameMapper: {
|
||||
'^@/components/(.*)$': '<rootDir>/components/$1',
|
||||
'^@/lib/(.*)$': '<rootDir>/src/lib/$1',
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = createJestConfig(customJestConfig);
|
||||
Reference in New Issue
Block a user