Skip to content

Commit 4df77ca

Browse files
committed
Fix failing test
1 parent b210eed commit 4df77ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

code/lib/create-storybook/src/ink/steps/checks/vitestConfigFiles.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import * as fs from 'node:fs/promises';
22

3-
import { describe, expect, it } from 'vitest';
3+
import { describe, expect, it, vi } from 'vitest';
44

55
import { findUp } from 'find-up';
66

77
import * as babel from '../../../../../../core/src/babel';
88
import { vitestConfigFiles } from './vitestConfigFiles';
99

10+
vi.mock('./vitestConfigFiles', () => ({
11+
vitestConfigFiles: {},
12+
}));
13+
1014
const liveContext: any = { babel, findUp, fs };
1115

1216
const fileMocks = {

0 commit comments

Comments
 (0)