-
Notifications
You must be signed in to change notification settings - Fork 2.2k
chore(test): vitest migration #9969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: chr/tape-to-vitest
Are you sure you want to change the base?
Changes from all commits
9109505
659c49f
ee46a47
04b8519
718a052
4949e46
d632932
541f0c1
3b187e2
fd05149
8c1954a
47e1d61
14d3c7c
f14ccae
9e75ff6
c2955bb
2f77513
c8eef73
cfffba1
b0280a0
84ff56c
4a35838
f2402ce
e95ae27
d616d74
cc69f73
6161023
fd9930c
8fce5f5
4766b53
7054272
a9edc69
b1e947f
a4ffad0
facc654
354485a
a14cd26
ed053cc
cea4d17
8bcb3ee
d44d9d5
237a9f6
7750fed
a30500c
5e4683f
d5a9bbf
c711bb8
6c04566
ad34130
16b3e9d
305668e
beb5176
ae7e43f
b4d166d
8c8ed22
ec43806
bb7a6a5
5443914
e8aa70c
2ab06f0
a6acf0c
4f7be42
1f8ff88
5002217
329e6cc
8250c0f
f067e09
de68ae4
875b0c4
c406bc3
0eb3d30
c84c896
959390b
4b88f59
16437f1
4579dfb
f860847
7119e0f
0a646af
f8a9a0b
d127bda
ac1293a
119252b
0c3fa68
972be68
2b7bf5e
394fe75
6becbcd
d2f2f23
8a60964
c8e9bd9
ed2dece
a999c4b
2763739
754737e
907474f
6b9de2f
b2970ad
3ab80db
fe58fe9
7f083a7
d81014e
8619d9f
39e5275
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,11 @@ | |
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js", | ||
| "require": "./dist/index.cjs" | ||
| }, | ||
| "./vitest": { | ||
| "types": "./dist/vitest.d.ts", | ||
| "import": "./dist/vitest.js", | ||
| "require": "./dist/vitest.cjs" | ||
| } | ||
| }, | ||
| "files": [ | ||
|
|
@@ -39,7 +44,13 @@ | |
| "@deck.gl/core": "~9.2.0", | ||
| "@luma.gl/core": "~9.2.6", | ||
| "@luma.gl/engine": "~9.2.6", | ||
| "@probe.gl/test-utils": "^4.1.1" | ||
| "@probe.gl/test-utils": "^4.1.1", | ||
| "vitest": "^2.1.0" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "vitest": { | ||
| "optional": true | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probe.gl peer dependency not marked as optional per RFCMedium Severity The RFC explicitly specifies Additional Locations (1)There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| "gitHead": "13ace64fc2cee08c133afc882fc307253489a4e4" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| // deck.gl | ||
| // SPDX-License-Identifier: MIT | ||
| // Copyright (c) vis.gl contributors | ||
|
|
||
| // Type declarations for browser test driver functions injected by @probe.gl/test-utils | ||
|
|
||
| interface BrowserTestDriverDiffOptions { | ||
| goldenImage: string; | ||
| region?: {x: number; y: number; width: number; height: number}; | ||
| saveOnFail?: boolean; | ||
| saveAs?: string; | ||
| threshold?: number; | ||
| createDiffImage?: boolean; | ||
| tolerance?: number; | ||
| includeAA?: boolean; | ||
| includeEmpty?: boolean; | ||
| platform?: string; | ||
| } | ||
|
|
||
| interface BrowserTestDriverDiffResult { | ||
| headless: boolean; | ||
| match: string | number; | ||
| matchPercentage: string; | ||
| success: boolean; | ||
| error: Error | string | null; | ||
| } | ||
|
|
||
| interface BrowserTestDriverInputEvent { | ||
| type: string; | ||
| [key: string]: any; | ||
| } | ||
|
|
||
| declare global { | ||
| interface Window { | ||
| browserTestDriver_emulateInput(event: BrowserTestDriverInputEvent): Promise<void>; | ||
| browserTestDriver_captureAndDiffScreen( | ||
| options: BrowserTestDriverDiffOptions | ||
| ): Promise<BrowserTestDriverDiffResult>; | ||
| } | ||
| } | ||
|
|
||
| export {}; |


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're stuck on vitest 2 until we upgrade from node 18.