Surface errors via toasts while keeping the modal open. This ensures they can retry or correct input without losing context, improving usability and reducing frustration.
17 lines
503 B
JavaScript
17 lines
503 B
JavaScript
const { createConfig } = require('@openedx/frontend-build');
|
|
|
|
module.exports = createConfig('jest', {
|
|
// setupFilesAfterEnv is used after the jest environment has been loaded. In general this is what you want.
|
|
// If you want to add config BEFORE jest loads, use setupFiles instead.
|
|
setupFilesAfterEnv: [
|
|
'<rootDir>/src/setupTest.tsx',
|
|
],
|
|
moduleNameMapper: {
|
|
'^@src/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
coveragePathIgnorePatterns: [
|
|
'src/setupTest.tsx',
|
|
'src/i18n',
|
|
],
|
|
});
|