forked from Kong/insomnia
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* vitest insomnia-inso * remove skipped logs * vitest insomnia config * remove jest * mocks? * remove globalBeforeEach smell * 110 left * 38 failing * 34 * 30 * 26 * 3 to go * fix tests * fix type checks * delete send-request * fix lint * test runner hack for now * remove duplicate snapshots --------- Co-authored-by: gatzjames <jamesgatzos@gmail.com>
- Loading branch information
Showing
117 changed files
with
563 additions
and
3,691 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
Large diffs are not rendered by default.
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
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 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
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,23 @@ | ||
import { vi } from 'vitest'; | ||
|
||
import { nodeLibcurlMock } from './src/__mocks__/@getinsomnia/node-libcurl'; | ||
import { electronMock } from './src/__mocks__/electron'; | ||
import { database as db } from './src/common/database'; | ||
import * as models from './src/models'; | ||
import { v4Mock } from './src/models/__mocks__/uuid'; | ||
await db.init(models.types(), { inMemoryOnly: true }, true, () => { },); | ||
vi.mock('electron', () => ({ default: electronMock })); | ||
|
||
vi.mock('uuid', () => ({ | ||
v4: () => v4Mock(), | ||
})); | ||
vi.mock('@getinsomnia/node-libcurl', () => nodeLibcurlMock); | ||
|
||
vi.mock('isomorphic-git', async importOriginal => { | ||
const actual = await importOriginal(); | ||
return { | ||
...Object.assign({}, actual), | ||
push: vi.fn(), | ||
clone: vi.fn(), | ||
}; | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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.