Skip to content

Commit

Permalink
Merge pull request #53 from lsst/FIREFLY-1522-extract-jest
Browse files Browse the repository at this point in the history
FIREFLY-1522: Extract jest config from firefly for reusing it in all apps
  • Loading branch information
jaladh-singhal authored Jul 26, 2024
2 parents d693fdf + 9a4bf26 commit ea42890
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
12 changes: 12 additions & 0 deletions src/suit/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-env node */

const baseConfig = require('../../__jest__/jest.base.config');

module.exports = {
...baseConfig,
coverageDirectory: '../../build/dist/reports/suit',
moduleNameMapper: {
...baseConfig.moduleNameMapper,
'^firefly/(.*)$': '<rootDir>/../../../firefly/src/firefly/js/$1'
}
};
24 changes: 0 additions & 24 deletions src/suit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,6 @@
"test-unit": "node ../../node_modules/jest/bin/jest --passWithNoTests",
"test-debug": "node --inspect-brk ../../node_modules/jest/bin/jest --runInBand --passWithNoTests"
},
"jest": {
"moduleFileExtensions": [
"js",
"jsx"
],
"moduleDirectories": [
"node_modules",
"js"
],
"setupFiles": [
"<rootDir>/../../__jest__/InitTest.js"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/../../__jest__/fileMock.js",
"\\.(css|less)$": "<rootDir>/../../__jest__/styleMock.js",
"^firefly/(.*)$": "<rootDir>/../../../firefly/src/firefly/js/$1"
},
"transform": {
"^.+\\.jsx?$": "<rootDir>/../../__jest__/jest.transform.js"
},
"globals": {
"__PROPS__": {}
}
},
"version": "0.0.0",
"license": "SEE LICENSE IN License.txt"
}

0 comments on commit ea42890

Please sign in to comment.