From f81a7d144e4b1456104538edfc12498af96cec03 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 27 Apr 2025 19:12:02 +1000 Subject: [PATCH 1/2] make Snapshot Testing reflect recent verify changes --- docs/guide/snapshot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/snapshot.md b/docs/guide/snapshot.md index eaba34c..89e39d0 100644 --- a/docs/guide/snapshot.md +++ b/docs/guide/snapshot.md @@ -1,7 +1,7 @@ # Snapshot Testing Although Alba does not ship built-in snapshotting support, it does easily integrate with the popular [Verify](https://github.com/VerifyTests/Verify) framework. -Given Verify and [Verify.AspNetCore](https://github.com/VerifyTests/Verify.AspNetCore) has been added and initialized for your test framework of choice, you can reliably feed in the `HttpContext` and response data for a complete picture of your network request. +Given Verify and [Verify.AspNetCore](https://github.com/VerifyTests/Verify.AspNetCore) has been added and initialized for your test framework of choice, you can pass the `scenario` to `Verify()`, and response data data will be captured for a complete picture of your network request. Given a test with the shape of: From ce5434113be6151aaeeca0cf4217dbfbe609e4c8 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 27 Apr 2025 19:58:47 +1000 Subject: [PATCH 2/2] Update snapshot.md --- docs/guide/snapshot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/snapshot.md b/docs/guide/snapshot.md index 89e39d0..9780ef3 100644 --- a/docs/guide/snapshot.md +++ b/docs/guide/snapshot.md @@ -1,7 +1,7 @@ # Snapshot Testing Although Alba does not ship built-in snapshotting support, it does easily integrate with the popular [Verify](https://github.com/VerifyTests/Verify) framework. -Given Verify and [Verify.AspNetCore](https://github.com/VerifyTests/Verify.AspNetCore) has been added and initialized for your test framework of choice, you can pass the `scenario` to `Verify()`, and response data data will be captured for a complete picture of your network request. +Given Verify and [Verify.AspNetCore](https://github.com/VerifyTests/Verify.AspNetCore) has been added and initialized for your test framework of choice, you can pass the `scenario` to `Verify()`, and response data will be captured for a complete picture of your network request. Given a test with the shape of: