Skip to content

Commit

Permalink
Docs: Minor fixes to the testing snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed May 7, 2024
1 parent e62d7f3 commit ca13021
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 ca13021

Please sign in to comment.