@yabbadabbadev/pepito 0.2.0 → 0.3.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/CHANGELOG.md +7 -0
- package/dist/failure-messages.d.ts +1 -1
- package/dist/matcher-types.d.ts +4 -5
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.0](https://github.com/yabbadabbadev/pepito/compare/v0.2.0...v0.3.0) (2026-09-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* broaden vitest peerDep to 4||5 and migrate to vitest 5 ([#11](https://github.com/yabbadabbadev/pepito/issues/11)) ([8bd6cde](https://github.com/yabbadabbadev/pepito/commit/8bd6cdee27e3d9d6d49b2243ff3f389fecbb3a8a))
|
|
9
|
+
|
|
3
10
|
## [0.2.0](https://github.com/yabbadabbadev/pepito/compare/v0.1.1...v0.2.0) (2026-09-02)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MatcherState } from '
|
|
1
|
+
import type { MatcherState } from 'vitest';
|
|
2
2
|
import type { ExpectedResponse } from './matcher-types';
|
|
3
3
|
import type { RequestSpec } from './request-descriptors';
|
|
4
4
|
import type { ResolvedRequest } from './traffic-registry';
|
package/dist/matcher-types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface ExpectedResponse {
|
|
|
10
10
|
body?: unknown;
|
|
11
11
|
exact?: boolean;
|
|
12
12
|
}
|
|
13
|
-
interface NetworkMatchers<ReturnType = unknown> {
|
|
13
|
+
export interface NetworkMatchers<ReturnType = unknown> {
|
|
14
14
|
/**
|
|
15
15
|
* Checks that the application made a request matching `spec`, by exact
|
|
16
16
|
* `method` and `path` and `searchParams`/`body` by subset. Retries until
|
|
@@ -92,8 +92,8 @@ interface NetworkMatchers<ReturnType = unknown> {
|
|
|
92
92
|
*/
|
|
93
93
|
toHaveNoUnhandledRequests(): Promise<ReturnType>;
|
|
94
94
|
}
|
|
95
|
-
declare module '
|
|
96
|
-
interface Assertion<T =
|
|
95
|
+
declare module 'vitest' {
|
|
96
|
+
interface Assertion<R extends void | Promise<void> = void, T = unknown> extends NetworkMatchers<T> {
|
|
97
97
|
}
|
|
98
98
|
interface AsymmetricMatchersContaining extends NetworkMatchers {
|
|
99
99
|
}
|
|
@@ -107,7 +107,6 @@ declare module '@vitest/expect' {
|
|
|
107
107
|
* await expect.network().toHaveNoUnhandledRequests()
|
|
108
108
|
* ```
|
|
109
109
|
*/
|
|
110
|
-
network(): Assertion<
|
|
110
|
+
network(): Assertion<void>;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yabbadabbadev/pepito",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Network test utilities for Vitest browser mode: application mounting and matchers over the traffic observed by MSW",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"msw": "^2.15.0",
|
|
66
|
-
"vitest": "^4.0.0"
|
|
66
|
+
"vitest": "^4.0.0 || ^5.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@eslint/js": "^9.39.5",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
74
74
|
"@typescript-eslint/parser": "^8.67.0",
|
|
75
75
|
"@vitejs/plugin-react": "^6.0.5",
|
|
76
|
-
"@vitest/browser": "^
|
|
77
|
-
"@vitest/browser-playwright": "^
|
|
78
|
-
"@vitest/coverage-v8": "^
|
|
76
|
+
"@vitest/browser": "^5.0.0",
|
|
77
|
+
"@vitest/browser-playwright": "^5.0.0",
|
|
78
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
79
79
|
"eslint": "^9.39.5",
|
|
80
80
|
"eslint-config-prettier": "^10.1.8",
|
|
81
81
|
"eslint-plugin-prettier": "^5.5.6",
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
"react-router": "^8.3.0",
|
|
93
93
|
"svelte": "^5.57.0",
|
|
94
94
|
"typescript": "^6.0.3",
|
|
95
|
-
"vitest": "^
|
|
96
|
-
"vitest-browser-react": "^2.
|
|
97
|
-
"vitest-browser-svelte": "^3.
|
|
98
|
-
"vitest-browser-vue": "^
|
|
95
|
+
"vitest": "^5.0.0",
|
|
96
|
+
"vitest-browser-react": "^2.3.0",
|
|
97
|
+
"vitest-browser-svelte": "^3.1.0",
|
|
98
|
+
"vitest-browser-vue": "^3.1.0",
|
|
99
99
|
"vue": "^3.5.42"
|
|
100
100
|
},
|
|
101
101
|
"msw": {
|