🚀(app-impress) create the base app impress

Create the base app impress, based on the
people app.
This commit is contained in:
Anthony LC
2024-04-02 12:12:04 +02:00
parent c64b66c797
commit 8fda0bc9b9
165 changed files with 8815 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
import type { Config } from 'jest';
import nextJest from 'next/jest.js';
const createJestConfig = nextJest({
dir: './',
});
// Add any custom config to be passed to Jest
const config: Config = {
coverageProvider: 'v8',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
testEnvironment: 'jsdom',
};
const jestConfig = async () => {
const nextJestConfig = await createJestConfig(config)();
return {
...nextJestConfig,
moduleNameMapper: {
'\\.svg$': '<rootDir>/jest/mocks/svg.js',
'^.+\\.svg\\?url$': `<rootDir>/jest/mocks/fileMock.js`,
...nextJestConfig.moduleNameMapper,
},
};
};
export default jestConfig;