Skip to content

Commit

Permalink
test: fix script to run storybook tests in docker on windows (#2145)
Browse files Browse the repository at this point in the history
Recently, storybook tests run on docker on windows machines are failing
to access host.docker.internal:6006.

The current PR does fix this issue.
  • Loading branch information
w1nklr authored Jul 10, 2024
1 parent 240ea8d commit bbd16ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build-storybook": "storybook build",
"storybook:test": "test-storybook --no-index-json",
"docker:build": "docker build --tag wsc_story_test --file Dockerfile.test .",
"docker:storybook:test": "cross-env-shell PWD=$PWD npm run docker:storybook:test:docker:core -- -it --rm --mount type=bind,source=${PWD}/packages,target=/test/packages --network host --ipc=host wsc_story_test",
"docker:storybook:test": "cross-env-shell PWD=$PWD npm run docker:storybook:test:docker:core -- -it --rm --mount type=bind,source=${PWD}/packages,target=/test/packages wsc_story_test",
"docker:storybook:test:update": "npm run docker:storybook:test -- npm run storybook:test -- --url http://host.docker.internal:6006/ --no-index-json --updateSnapshot",
"docker:storybook:test:docker:core": "docker run",
"cy:run": "npx cypress run -b chrome --component --headed",
Expand Down

0 comments on commit bbd16ed

Please sign in to comment.