18
apps/web/jest.config.cts
Normal file
18
apps/web/jest.config.cts
Normal file
@@ -0,0 +1,18 @@
|
||||
const nextJest = require('next/jest.js');
|
||||
|
||||
const createJestConfig = nextJest({
|
||||
dir: './',
|
||||
});
|
||||
|
||||
const config = {
|
||||
displayName: '@my-monorepo/web',
|
||||
preset: '../../jest.preset.js',
|
||||
transform: {
|
||||
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
|
||||
},
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
||||
coverageDirectory: '../../coverage/apps/web',
|
||||
testEnvironment: 'jsdom',
|
||||
};
|
||||
|
||||
module.exports = createJestConfig(config);
|
||||
Reference in New Issue
Block a user