Skip to content

Commit

Permalink
test: set node_env to test when running yarn test
Browse files Browse the repository at this point in the history
This is due to react-testing-library giving a warning that
'act(...) is not supported in production builds of React,
and might not behave as expected.'

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
  • Loading branch information
blakepettersson committed Aug 31, 2023
1 parent c744dfd commit d043cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "find ./dist -type f -not -name gitkeep -delete && webpack --config ./src/app/webpack.config.js --mode production",
"lint": "tsc --noEmit --project ./src/app && tslint -p ./src/app",
"lint:fix": "tslint -p ./src/app --fix",
"test": "jest"
"test": "NODE_ENV=test jest"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
Expand Down

0 comments on commit d043cc3

Please sign in to comment.