mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 21:44:21 -04:00
Use yarn pnp as module linker (#2252)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
20a48b38d7
commit
6ba957585a
17 changed files with 271 additions and 7285 deletions
|
@ -12,18 +12,16 @@ const createJestConfig = nextJest({
|
|||
|
||||
// Add any custom config to be passed to Jest
|
||||
const customJestConfig = {
|
||||
setupFilesAfterEnv: [
|
||||
'@testing-library/jest-dom/extend-expect'
|
||||
],
|
||||
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
|
||||
moduleNameMapper: {
|
||||
// Handle module aliases (this will be automatically configured for you soon)
|
||||
'^@/components/(.*)$': '<rootDir>/src/components/$1',
|
||||
// fix uuid / jest problem https://github.com/uuidjs/uuid/pull/616
|
||||
'^uuid$': require.resolve('uuid'),
|
||||
'^uuid$': require.resolve('uuid')
|
||||
},
|
||||
roots: ["<rootDir>/src"],
|
||||
roots: ['<rootDir>/src'],
|
||||
testEnvironment: 'jsdom',
|
||||
testPathIgnorePatterns: ["/node_modules/", "/cypress/"]
|
||||
testPathIgnorePatterns: ['/node_modules/', '/cypress/']
|
||||
}
|
||||
|
||||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue