mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-05 04:55:58 +01:00
17 lines
399 B
JavaScript
17 lines
399 B
JavaScript
|
|
const nextJest = require('next/jest');
|
||
|
|
|
||
|
|
const createJestConfig = nextJest({
|
||
|
|
dir: './',
|
||
|
|
});
|
||
|
|
|
||
|
|
const customJestConfig = {
|
||
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||
|
|
moduleNameMapper: {
|
||
|
|
'^@/components/(.*)$': '<rootDir>/components/$1',
|
||
|
|
'^@/pages/(.*)$': '<rootDir>/pages/$1',
|
||
|
|
},
|
||
|
|
testEnvironment: 'jest-environment-jsdom',
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports = createJestConfig(customJestConfig);
|