Skip to content

Commit

Permalink
Test out a typescript test-runner config
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Feb 16, 2022
1 parent 205a44a commit 75dc999
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .storybook/test-runner.js → .storybook/test-runner.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { toMatchImageSnapshot } = require('jest-image-snapshot');
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import type { TestRunnerConfig } from '../dist/ts';

const customSnapshotsDir = `${process.cwd()}/__snapshots__`;

module.exports = {
const config: TestRunnerConfig = {
setup() {
expect.extend({ toMatchImageSnapshot });
},
Expand All @@ -16,3 +17,5 @@ module.exports = {
});
},
};

export default config;

0 comments on commit 75dc999

Please sign in to comment.