Files
frontend-app-authoring/example/jest.config.example.js
Brian Smith f33a3b5521 fix(deps)!: support paragon and frontend-build in openedx scope (#457)
BREAKING CHANGE: frontend-platform peer dependency updated to ^7.0.1
BREAKING CHANGE: @edx/paragon peer dependency updated to @openedx/paragon
2024-02-09 14:41:16 -05:00

31 lines
637 B
JavaScript

const { createConfig } = require('@openedx/frontend-build');
module.exports = createConfig('jest', {
setupFiles: [
'<rootDir>/src/setupTest.js',
],
setupFilesAfterEnv: [
'<rootDir>/src/setupTestEnv.js',
],
collectCoverageFrom: [
"**/*.{js,jsx}",
],
testMatch: [
'**/specs/**/*.spec.(js|jsx)|**/__tests__/*.(js|jsx)|**/specs/*.spec.(js|jsx)',
],
roots: [
'<rootDir>src/',
],
coveragePathIgnorePatterns: [
'src/setupTestEnv.js',
'src/setupTest.js',
'jest.config.js',
'src/i18n',
'/node_modules/',
'/specs/'
],
moduleNameMapper: {
'^lodash-es$': 'lodash',
},
});