We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6f90f6 + 05c40cb commit 34aed21Copy full SHA for 34aed21
jest.config.cjs
@@ -1,6 +1,17 @@
1
const base = require('@orchestrator-ui/jest-config/jest-base.config.js');
2
+const nextJest = require('next/jest');
3
-module.exports = {
4
+const createJestConfig = nextJest({
5
+ // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
6
+ dir: './',
7
+});
8
+
9
+// The entry for "uuid" in the moduleNameMapper can be removed when EUI updates the dependency version to 9.0.0 or higher.
10
+// https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#900-2022-09-05
11
+const customJestConfig = {
12
...base,
13
displayName: 'Wfo-UI Tests',
14
+ moduleNameMapper: { "^uuid$": "uuid" },
15
};
16
17
+module.exports = createJestConfig(customJestConfig);
0 commit comments