Skip to content

Commit

Permalink
fix: swap override order
Browse files Browse the repository at this point in the history
  • Loading branch information
syi0808 committed Jul 20, 2024
1 parent e441e4a commit f7f2bdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vitest/src/integrations/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ export interface VitestUtils {
* @param factory Mocked module factory. The result of this function will be an exports object
*/
// eslint-disable-next-line ts/method-signature-style
mock(path: string, factory?: MockFactoryWithHelper): void
mock<T>(module: Promise<T>, factory?: PromiseMockFactoryWithHelper<T>): void
// eslint-disable-next-line ts/method-signature-style
mock<T>(module: Promise<T>, factory?: MockFactoryWithHelper<T>): void
// eslint-disable-next-line ts/method-signature-style
mock<T>(module: Promise<T>, factory?: PromiseMockFactoryWithHelper<T>): void
mock(path: string, factory?: MockFactoryWithHelper): void

/**
* Removes module from mocked registry. All calls to import will return the original module even if it was mocked before.
Expand All @@ -218,11 +218,11 @@ export interface VitestUtils {
* @param factory Mocked module factory. The result of this function will be an exports object
*/
// eslint-disable-next-line ts/method-signature-style
doMock(path: string, factory?: MockFactoryWithHelper): void
doMock<T>(module: Promise<T>, factory?: PromiseMockFactoryWithHelper<T>): void
// eslint-disable-next-line ts/method-signature-style
doMock<T>(module: Promise<T>, factory?: MockFactoryWithHelper<T>): void
// eslint-disable-next-line ts/method-signature-style
doMock<T>(module: Promise<T>, factory?: PromiseMockFactoryWithHelper<T>): void
doMock(path: string, factory?: MockFactoryWithHelper): void
/**
* Removes module from mocked registry. All subsequent calls to import will return original module.
*
Expand Down

0 comments on commit f7f2bdd

Please sign in to comment.