mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 10:41:49 +08:00
Fix unit test
These additional methods are used in find-up and must be present in the mock `fs`
This commit is contained in:
parent
9b6748b994
commit
534e618557
@ -15,6 +15,9 @@ jest.mock('./js-package-manager', () => ({
|
|||||||
|
|
||||||
jest.mock('fs', () => ({
|
jest.mock('fs', () => ({
|
||||||
existsSync: jest.fn(),
|
existsSync: jest.fn(),
|
||||||
|
stat: jest.fn(),
|
||||||
|
lstat: jest.fn(),
|
||||||
|
access: jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('path', () => ({
|
jest.mock('path', () => ({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user