Skip to content

Commit

Permalink
Remove --experimental-vm-modules option when running jest.
Browse files Browse the repository at this point in the history
I was getting 'ReferenceError: require is not defined' errors from jest since moving
the repo to TypeScript. Removing it allows the tests to run fine.
  • Loading branch information
jwhitham-ds committed Aug 23, 2022
1 parent 5f491ca commit 90f7655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:website": "yarn workspace @emoji-mart/website build",
"prettier": "prettier --check .",
"prettier:fix": "prettier --write .",
"test": "yarn node --experimental-vm-modules $(yarn bin jest)"
"test": "jest"
},
"devDependencies": {
"@babel/core": "7.18.9",
Expand Down

0 comments on commit 90f7655

Please sign in to comment.