Skip to content

Commit

Permalink
Merge pull request #27058 from storybookjs/docs_fix_storyshots_migrat…
Browse files Browse the repository at this point in the history
…ion_guide_snippet

Docs: Minor fixes to the testing snippets
(cherry picked from commit 7c9db11)
  • Loading branch information
jonniebigodes authored and storybook-bot committed May 10, 2024
1 parent ee6e9e3 commit 1a9d47e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const coverageConfig: AddonOptionsWebpack = {
istanbul: {
include: ['**/stories/**'],
exclude: ['**/exampleDirectory/**'],
}
},
};

const config: StorybookConfig = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
```js
// .storybook/test-runner.js

const { waitForPageReady } = require('@storybook/test-runner');

const { toMatchImageSnapshot } = require('jest-image-snapshot');

const customSnapshotsDir = `${process.cwd()}/__snapshots__`;
Expand Down
1 change: 1 addition & 0 deletions docs/snippets/common/test-runner-waitpageready.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// .storybook/test-runner.js

const { waitForPageReady } = require('@storybook/test-runner');

const { toMatchImageSnapshot } = require('jest-image-snapshot');

const customSnapshotsDir = `${process.cwd()}/__snapshots__`;
Expand Down
1 change: 1 addition & 0 deletions docs/snippets/common/test-runner-waitpageready.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// .storybook/test-runner.ts

import type { TestRunnerConfig } from '@storybook/test-runner';

import { waitForPageReady } from '@storybook/test-runner';

import { toMatchImageSnapshot } from 'jest-image-snapshot';
Expand Down

0 comments on commit 1a9d47e

Please sign in to comment.