@teamkeel/testing-runtime 0.371.0 → 0.372.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/index.d.ts +4 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamkeel/testing-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.372.0",
|
|
4
4
|
"description": "Internal package used by the generated @teamkeel/testing package",
|
|
5
5
|
"exports": "./src/index.mjs",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"jsonwebtoken": "^9.0.0",
|
|
23
23
|
"kysely": "^0.23.4",
|
|
24
24
|
"lodash.ismatch": "^4.4.0",
|
|
25
|
-
"vitest": "^0.
|
|
25
|
+
"vitest": "^0.34.6"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// See https://vitest.dev/guide/extending-matchers.html for docs
|
|
2
2
|
// on typing custom matchers
|
|
3
|
+
import type { Assertion, AsymmetricMatchersContaining } from "vitest";
|
|
3
4
|
|
|
4
5
|
interface ActionError {
|
|
5
6
|
code: string;
|
|
@@ -12,11 +13,7 @@ interface CustomMatchers<R = unknown> {
|
|
|
12
13
|
toHaveError(err: Partial<ActionError>): void;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
interface AsymmetricMatchersContaining extends CustomMatchers {}
|
|
19
|
-
}
|
|
16
|
+
declare module "vitest" {
|
|
17
|
+
interface Assertion<T = any> extends CustomMatchers<T> {}
|
|
18
|
+
interface AsymmetricMatchersContaining extends CustomMatchers {}
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
export {};
|