-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29118 from storybookjs/version-non-patch-from-8.4…
….0-alpha.0 Release: Prerelease 8.4.0-alpha.1
- Loading branch information
Showing
99 changed files
with
628 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { vi } from 'vitest'; | ||
|
||
// This is a custom function that our tests can use during setup to specify | ||
// what the files on the "mock" filesystem should look like when any of the | ||
// `fs` APIs are used. | ||
let mockFiles = Object.create(null); | ||
|
||
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/naming-convention | ||
export function __setMockFiles(newMockFiles: Record<string, string | null>) { | ||
mockFiles = newMockFiles; | ||
} | ||
|
||
export const readFileSync = (filePath = '') => mockFiles[filePath]; | ||
export const existsSync = (filePath: string) => !!mockFiles[filePath]; | ||
export const lstatSync = (filePath: string) => ({ | ||
isFile: () => !!mockFiles[filePath], | ||
}); | ||
export const realpathSync = vi.fn(); | ||
export const readdir = vi.fn(); | ||
export const readdirSync = vi.fn(); | ||
export const readlinkSync = vi.fn(); | ||
|
||
export default { | ||
__setMockFiles, | ||
readFileSync, | ||
existsSync, | ||
lstatSync, | ||
realpathSync, | ||
readdir, | ||
readdirSync, | ||
readlinkSync, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { vi } from 'vitest'; | ||
|
||
// This is a custom function that our tests can use during setup to specify | ||
// what the files on the "mock" filesystem should look like when any of the | ||
// `fs` APIs are used. | ||
let mockFiles = Object.create(null); | ||
|
||
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/naming-convention | ||
export function __setMockFiles(newMockFiles: Record<string, string | null>) { | ||
mockFiles = newMockFiles; | ||
} | ||
|
||
export const writeFile = vi.fn(async (filePath: string, content: string) => { | ||
mockFiles[filePath] = content; | ||
}); | ||
export const readFile = vi.fn(async (filePath: string) => mockFiles[filePath]); | ||
export const lstat = vi.fn(async (filePath: string) => ({ | ||
isFile: () => !!mockFiles[filePath], | ||
})); | ||
export const readdir = vi.fn(); | ||
export const readlink = vi.fn(); | ||
export const realpath = vi.fn(); | ||
|
||
export default { | ||
__setMockFiles, | ||
writeFile, | ||
readFile, | ||
lstat, | ||
readdir, | ||
readlink, | ||
realpath, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.