Skip to content

Commit

Permalink
Remove (disable) isolate option because it sometimes doesn't show sto…
Browse files Browse the repository at this point in the history
…ries
  • Loading branch information
ghengeveld committed Aug 27, 2024
1 parent 896e3f0 commit d3d6fd2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions code/addons/vitest/src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,13 @@ export default async function postInstall(options: PostinstallOptions) {
storybookTest(),${vitestInfo.frameworkPluginCall ? '\n' + vitestInfo.frameworkPluginCall : ''}
],
test: {
include: ['**/*.stories.?(m)[jt]s?(x)'],
browser: {
enabled: true,
headless: true,
name: 'chromium',
provider: 'playwright',
headless: true,
},
// Disabling isolation is faster and is similar to how tests are isolated in Storybook itself.
// Consider removing this if you are seeing problems with your tests.
isolate: false,
include: ['**/*.stories.?(m)[jt]s?(x)'],
setupFiles: ['./.storybook/vitest.setup.ts'],
},
},
Expand All @@ -164,16 +161,13 @@ export default async function postInstall(options: PostinstallOptions) {
storybookTest(),${vitestInfo.frameworkPluginCall ? '\n' + vitestInfo.frameworkPluginCall : ''}
],
test: {
include: ['**/*.stories.?(m)[jt]s?(x)'],
browser: {
enabled: true,
headless: true,
name: 'chromium',
provider: 'playwright',
headless: true,
},
// Disabling isolation is faster and is similar to how tests are isolated in Storybook itself.
// Consider removing this, if you have flaky tests.
isolate: false,
include: ['**/*.stories.?(m)[jt]s?(x)'],
setupFiles: ['./.storybook/vitest.setup.ts'],
},
});
Expand Down

0 comments on commit d3d6fd2

Please sign in to comment.