Skip to content

Commit d6f22d2

Browse files
committed
set NODE_ENV=test env to storycap server running
1 parent 3d07c29 commit d6f22d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"storybook": "start-storybook -s ./node_modules/@salesforce-ux/design-system -p 9001 -c .storybook",
2626
"test": "echo \"no test to run\"",
27-
"pretest:visual": "storycap --serverCmd \"npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000",
27+
"pretest:visual": "storycap --serverCmd \"NODE_ENV=test npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000",
2828
"test:visual": "reg-suit -v run",
2929
"type-check": "tsc --noEmit",
3030
"type-check:watch": "npm run type-check -- --watch",

0 commit comments

Comments
 (0)