Skip to content

Commit

Permalink
32129139: Configure jest so it works with our ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou committed Apr 3, 2024
1 parent d25ade9 commit d379aae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const config = {

// The directory where Jest should output its coverage files:
coverageDirectory: "coverage",

// Deactivate default transformers. This is useful to support ES
// modules:
transform: {},
};

export default config;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "MIT",
"scripts": {
"lint": "eslint --report-unused-disable-directives .",
"test": "jest"
"test": "node --experimental-vm-modules node_modules/.bin/jest"
},
"devDependencies": {
"@foretagsplatsen/eslint-plugin": "^6.0.0",
Expand Down

0 comments on commit d379aae

Please sign in to comment.