mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
Fix environment usage in preview file
This commit is contained in:
parent
3f1ae4effe
commit
9ed60778e4
@ -11,7 +11,7 @@ expect.extend(matchers);
|
||||
|
||||
// @ts-expect-error - ignore
|
||||
// todo: check in webpack environments
|
||||
const isVitestStandaloneRun = import.meta?.env?.STORYBOOK !== 'true';
|
||||
const isVitestStandaloneRun = import.meta?.env?.STORYBOOK && import.meta?.env?.STORYBOOK !== 'true';
|
||||
|
||||
export const afterEach = async ({ reporting, parameters, globals, id }: StoryContext) => {
|
||||
const a11yParameter: A11yParameters | undefined = parameters.a11y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user