Skip to content

Commit 4c61e41

Browse files
committed
stop touching my config
1 parent f1d7be7 commit 4c61e41

File tree

1 file changed

+4
-2
lines changed
  • packages/addons/_tests/storybook

1 file changed

+4
-2
lines changed

packages/addons/_tests/storybook/test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ import process from 'node:process';
22
import { expect } from '@playwright/test';
33
import { setupTest } from '../_setup/suite.ts';
44
import storybook from '../../storybook/index.ts';
5+
import eslint from '../../eslint/index.ts';
56

6-
const { test, variants, prepareServer } = setupTest({ storybook });
7+
// we're including the `eslint` add-on to prevent `storybook` from modifying this repo's `eslint.config.js`
8+
const { test, variants, prepareServer } = setupTest({ storybook, eslint });
79

810
let port = 6006;
911

1012
test.for(variants)(
1113
'storybook loaded - %s',
1214
{ concurrent: !process.env.CI },
1315
async (variant, { page, ...ctx }) => {
14-
const cwd = await ctx.run(variant, { storybook: {} });
16+
const cwd = await ctx.run(variant, { storybook: {}, eslint: {} });
1517

1618
const { close } = await prepareServer({
1719
cwd,

0 commit comments

Comments
 (0)