Skip to content

Commit 8a2c2a9

Browse files
chore: Update version for release (#54)
1 parent 7124436 commit 8a2c2a9

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

.changeset/eight-readers-rescue.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# @mcansh/vitest-response-matchers
2+
3+
## 0.1.0
4+
5+
### Minor Changes
6+
7+
- 63750c9: add vitest response matchers package
8+
9+
initial set of matchers is the following
10+
- `toHaveBody` - check that a Response has a body attatched to it
11+
- `toHaveCookies` - check that a Response has any cookies, specified cookies, or a perfect match
12+
- `toHaveHeader` - check that a Response has a specific header (and value)
13+
- `toHaveJsonBody` - check that a Response's body matches the expected json
14+
- `toHaveStatus` - check that a Response's status matches
15+
- `toHaveStatusText` - check that a Response's statusText matches
16+
- `toHaveStrictStatusText` - a stricter version of the above that uses `node:http` to look up the status text
17+
- `toHaveTextBody` - check that a Response's body matches the expected text
18+
- `toMatchResponse` - check that a complete Response matches
19+
- `toThrowResponse` - check that a function throws a Response

packages/vitest-response-matchers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcansh/vitest-response-matchers",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"description": "Response assertion matchers for vitest",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)