Skip to content

Commit

Permalink
fix(docker): [BLA-816] added network alias for snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barath-kumar-tw committed Jun 18, 2024
1 parent 61207ef commit 14ada18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ services:
working_dir: /b2b/packages/core-components
volumes:
- ./packages/core-components/__snapshots__:/b2b/packages/core-components/__snapshots__
networks:
default:
aliases:
- storybook.local

run-tests:
build:
Expand All @@ -26,4 +30,4 @@ services:
depends_on:
storybook:
condition: service_healthy
command: npx test-storybook --verbose --url http://host.docker.internal:6006
command: npx test-storybook --verbose --url http://storybook.local:6006
1 change: 1 addition & 0 deletions packages/core-components/.storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { toMatchImageSnapshot } = require('jest-image-snapshot');
const customSnapshotsDir = `${process.cwd()}/__snapshots__`;

const ignoredStories = [
'components-assets-icon-100--all-icons',
'components-assets-icon--story-070-all-icons',
'components-assets-icon--story-040-size-50',
'components-status-feedback-modal--story-010-backdrop-dismiss',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14ada18

Please sign in to comment.