Skip to content

Commit

Permalink
Workaround source-map issue in Node 18
Browse files Browse the repository at this point in the history
Workaround for mozilla/source-map#454 since we
seem to be hitting this error, causing jest reporting to fail.

cross-env is needed to make env variable setting work on Windows
  • Loading branch information
diracdeltas committed Oct 17, 2023
1 parent 60f9d24 commit e3b1497
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -28,7 +28,7 @@
"format": "node ./build/commands/scripts/commands.js format",
"mass_rename": "node ./build/commands/scripts/commands.js mass_rename",
"test": "node ./build/commands/scripts/commands.js test",
"test:scripts": "jest build/commands/lib build/commands/scripts",
"test:scripts": "cross-env NODE_OPTIONS=--no-experimental-fetch jest build/commands/lib build/commands/scripts",
"test-security": "npm run check_security && npm run audit_deps && npm run network-audit",
"tslint": "npm run eslint",
"eslint": "eslint ./components",
Expand All @@ -39,8 +39,8 @@
"web-ui": "webpack --config components/webpack/webpack.config.js --colors",
"build-storybook": "build-storybook -c .storybook -o .storybook-out",
"storybook": "start-storybook",
"test-unit": "jest -t",
"test-unit:wallet": "jest --coverage=false components/brave_wallet_ui",
"test-unit": "cross-env NODE_OPTIONS=--no-experimental-fetch jest -t",
"test-unit:wallet": "cross-env NODE_OPTIONS=--no-experimental-fetch jest --coverage=false components/brave_wallet_ui",
"test-python-scripts": "npm run pep8 && PYTHONPATH=./script python -m unittest discover -s ./script/test",
"update_symlink": "node ./build/commands/scripts/commands.js update_symlink",
"build_fuzzer": "node ./build/commands/scripts/commands.js build_fuzzer",
Expand Down Expand Up @@ -301,6 +301,7 @@
"babel-loader": "8.2.3",
"chalk": "4.1.2",
"commander": "2.20.3",
"cross-env": "7.0.3",
"css-loader": "3.6.0",
"csstype": "2.6.21",
"dotenv": "16.3.1",
Expand Down

0 comments on commit e3b1497

Please sign in to comment.