--- name: Update snapshots in `bun test` --- Bun's test runner supports Jest-style snapshot testing via `.toMatchSnapshot()`. {% callout %} The `.toMatchInlineSnapshot()` method is not yet supported. {% /callout %} ```ts#snap.test.ts import { test, expect } from "bun:test"; test("snapshot", () => { expect({ foo: "bar" }).toMatchSnapshot(); }); ``` --- The first time this test is executed, Bun will write a snapshot file to disk in a directory called `__snapshots__` that lives alongside the test file. ```txt test ├── __snapshots__ │   └── snap.test.ts.snap └── snap.test.ts ``` --- To regenerate snapshots, use the `--update-snapshots` flag. ```sh $ bun test --update-snapshots bun test v1.x (9c68abdb) test/snap.test.ts: ✓ snapshot [0.86ms] 1 pass 0 fail snapshots: +1 added # the snapshot was regenerated 1 expect() calls Ran 1 tests across 1 files. [102.00ms] ``` --- See [Docs > Test Runner > Snapshots](/docs/test/mocks) for complete documentation on mocking with the Bun test runner. ='/ansg191/v2/about/'>aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/webdav/internal/xml/marshal.go (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2018-08-25Add remove button in feed edit pageGravatar Frédéric Guillot 7-10/+43
2018-08-25Split integration tests into multiple filesGravatar Frédéric Guillot 11-1267/+1329
2018-08-25Update scraper rule for heise.deGravatar Frédéric Guillot 1-1/+1
2018-08-25Expose real error messages for internal server API errorsGravatar Frédéric Guillot 6-26/+25
2018-08-25Simplify context keysGravatar Frédéric Guillot 2-50/+20
2018-08-25Added remote client IP to login failure error message.Gravatar dzaikos 1-2/+4
2018-08-24Move Golang API client hereGravatar Frédéric Guillot 12-183/+132
2018-08-24Use canonical importsGravatar Frédéric Guillot 263-956/+962