Skip to content

Commit

Permalink
build: major paragon version upgrade (#419)
Browse files Browse the repository at this point in the history
* build: major paragon version upgrade

* refactor: move jest configs to seperate jest-config file
  • Loading branch information
Syed-Ali-Abbas-Zaidi authored May 18, 2023
1 parent 401e601 commit 24874aa
Show file tree
Hide file tree
Showing 4 changed files with 770 additions and 396 deletions.
7 changes: 7 additions & 0 deletions fileTransformer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');

module.exports = {
process(src, filename) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
},
};
20 changes: 20 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
testEnvironment: 'jest-environment-jsdom-global',
testURL: 'http://localhost/',
setupFiles: [
'./src/setupTest.js',
],
transformIgnorePatterns: [
'node_modules/(?!@edx)',
],
collectCoverage: true,
collectCoverageFrom: [
'src/**/**.{js,jsx}',
'!src/**/*.stories.jsx',
'!src/setupTest.js',
],
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/fileTransformer.js',
},
};
Loading

0 comments on commit 24874aa

Please sign in to comment.