Skip to content

Commit

Permalink
docs(contributing): updated tests section (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
saiponnada authored Dec 19, 2024
1 parent b8516f0 commit 981e76a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-mangos-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/ebayui-core": minor
---

docs(contributing): updated tests section
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The demo page will render the `examples/` for each component. To selectively inc

Execute `npm test` to run all tests and generate coverage reports at `./coverage/index.html`.

Most of our server tests use `mocha-snap` in order to verify html snapshots against the generated html that the current component outputs. If these change the test will fail. In order to update the snapshots, one needs to run `UPDATE_SNAPSHOTS=1 npm test` and then new snapshots will be genrated, which should be checked in.
Most of our server tests use `vitest` & `@marko/testing-library` in order to verify html snapshots against the generated html that the current component outputs. If these change the test will fail. In order to update the snapshots, one needs to run `npm test -u` and then new snapshots will be genrated, which should be checked in.

### Marko Lifecycle Functions

Expand Down

0 comments on commit 981e76a

Please sign in to comment.