-
Notifications
You must be signed in to change notification settings - Fork 2k
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 <[email protected]>
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,9 +25,8 @@ | |
"start": "concurrently -n browser,main --kill-others \"npm run start:dev-server\" \"npm run start:electron\"", | ||
"start:dev-server": "vite dev", | ||
"start:electron": "cross-env NODE_ENV=development esr esbuild.main.ts && electron --inspect=5858 .", | ||
"test": "jest", | ||
"test": "vitest run", | ||
"electron:dev-build": "electron ./build/main.min.js", | ||
"test:watch": "jest --watch", | ||
"type-check": "tsc --noEmit --project tsconfig.json", | ||
"type-check:watch": "npm run type-check -- --watch", | ||
"convert-svg": "npm_config_yes=true npx @svgr/[email protected] --no-index --config-file svgr.config.js --out-dir src/ui/components/assets/svgr src/ui/components/assets/" | ||
|
@@ -41,7 +40,6 @@ | |
"@getinsomnia/node-libcurl": "^2.4.30", | ||
"@grpc/grpc-js": "^1.10.10", | ||
"@grpc/proto-loader": "^0.7.13", | ||
"@jest/globals": "^29.7.0", | ||
"@seald-io/nedb": "^4.0.4", | ||
"@segment/analytics-node": "2.1.0", | ||
"apiconnect-wsdl": "1.8.31", | ||
|
@@ -96,7 +94,6 @@ | |
"@tailwindcss/typography": "^0.5.12", | ||
"@tanstack/react-virtual": "3.2.0", | ||
"@testing-library/dom": "^9.3.4", | ||
"@testing-library/jest-dom": "^6.4.2", | ||
"@testing-library/react": "^14.2.2", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/aws4": "^1.11.6", | ||
|
@@ -155,9 +152,6 @@ | |
"highlight.js": "^11.9.0", | ||
"httplease-asap": "^0.6.0", | ||
"isomorphic-git": "1.25.7", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jest-mock": "^29.7.0", | ||
"json-diff-kit": "^1.0.23", | ||
"json-order": "^1.1.3", | ||
"less": "^4.2.0", | ||
|
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.