mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-16 17:41:07 +00:00
fix: uuid / jest export problem
With jest 28 and the removal of jest-environment-jsdom the uuid package is not correctly loaded anymore. This is a temporary fix to let us use jest 28 until this is resolved. See also: https://github.com/uuidjs/uuid/pull/616 Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
91cd491d6d
commit
3b102b75f5
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -18,6 +18,8 @@ const customJestConfig = {
|
|||
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'),
|
||||
},
|
||||
roots: ["<rootDir>/src"],
|
||||
testEnvironment: 'jsdom',
|
||||
|
|
Loading…
Reference in a new issue