mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-28 04:08:05 +00:00
* build(deps): bump @testing-library/user-event from 14.4.1 to 14.4.2 Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.4.1 to 14.4.2. - [Release notes](https://github.com/testing-library/user-event/releases) - [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md) - [Commits](https://github.com/testing-library/user-event/compare/v14.4.1...v14.4.2) --- updated-dependencies: - dependency-name: "@testing-library/user-event" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * [dependabot skip] Fix yarn.lock * test/index: fix breaking change from testing-library/user-event update Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot-fix <dependabot-fix@example.com> Co-authored-by: David Lechner <david@pybricks.com>
Testing
NOTE: This directory contains test helpers. Actual tests are in the src/
directory.
Running tests
yarn test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Code coverage
yarn coverage
Launches the test runner in the code coverage mode. Results are displayed in the terminal.
yarn coverage:html
xdg-open coverage/index.html
Does the same thing except results are converted to more detailed html pages in
the coverage/ directory. (On macOS, use open and on Windows use explorer
instead of xdg-open to open the html in your default web browser.)
Writing tests
Tests are written using the Jest testing framework.