* test: replacing snapshot tests with rtl tests part 5 * test: removig extra tests * test: snaps update * test: adding import shorthand and turning tests into ts * docs: clarify which line the comment is about --------- Co-authored-by: Braden MacDonald <braden@opencraft.com>
22 lines
628 B
JavaScript
22 lines
628 B
JavaScript
const { createConfig } = require('@openedx/frontend-build');
|
|
|
|
module.exports = createConfig('jest', {
|
|
setupFilesAfterEnv: [
|
|
'jest-expect-message',
|
|
'<rootDir>/src/setupTest.js',
|
|
],
|
|
coveragePathIgnorePatterns: [
|
|
'src/setupTest.js',
|
|
'src/i18n',
|
|
],
|
|
moduleNameMapper: {
|
|
'^lodash-es$': 'lodash',
|
|
// This alias is for any code in the src directory that wants to avoid '../../' style relative imports:
|
|
'^@src/(.*)$': '<rootDir>/src/$1',
|
|
// This alias is used for plugins in the plugins/ folder only.
|
|
'^CourseAuthoring/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
modulePathIgnorePatterns: [
|
|
],
|
|
});
|