Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
const base = require('@orchestrator-ui/jest-config/jest-base.config.js');
const nextJest = require('next/jest');

module.exports = {
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: './',
});

// The entry for "uuid" in the moduleNameMapper can be removed when EUI updates the dependency version to 9.0.0 or higher.
// https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#900-2022-09-05
const customJestConfig = {
...base,
displayName: 'Wfo-UI Tests',
moduleNameMapper: { "^uuid$": "uuid" },
};

module.exports = createJestConfig(customJestConfig);