Skip to content

Commit

Permalink
test: use run command for docker-compose tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfb committed Nov 2, 2024
1 parent 641423d commit 5d07b90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const config: TestRunnerConfig = {
return;
}

if (!storyContext.tags.includes("no-screenshot-test")) {
if (!storyContext.tags.includes("no-visual-test")) {
await screenshotTest(page, context);
}
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
"docker": "docker run --rm -it --user node --mount type=bind,source=\"$(pwd)\",target=/app $(docker build -q .)",
"docker:storybook": "npm run docker -- npm run storybook -- --no-open",
"docker:compose:storybook": "docker-compose up --build storybook",
"docker:compose:test": "docker-compose up --build test-storybook",
"docker:compose:test:github": "docker-compose up --build test-storybook-github",
"docker:compose:test:update": "docker-compose up --build test-storybook-update",
"docker:compose:test": "docker-compose run test-storybook",
"docker:compose:test:github": "docker-compose run test-storybook-github",
"docker:compose:test:update": "docker-compose run test-storybook-update",
"lint:typecheck": "tsc --project tsconfig.lint.json --noEmit",
"lint": "npm run lint:typecheck && eslint \"**\"",
"lint:fix": "eslint \"**\" --fix",
Expand Down
5 changes: 4 additions & 1 deletion src/components/gpx-hill-map.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ export default meta;

type Story = StoryObj<typeof GpxHillMap>;

export const Default: Story = {};
export const Default: Story = {
tags: ["no-visual-test"],
};

export const JotunheimenRundt: Story = {
args: {
gpx: "Jotunheimen_rundt.gpx",
},
tags: ["no-visual-test"],
};

0 comments on commit 5d07b90

Please sign in to comment.