Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitovi/react-testing
https://github.com/bitovi/react-testing
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitovi/react-testing
- Owner: bitovi
- Created: 2021-02-15T16:32:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T16:24:59.000Z (about 3 years ago)
- Last Synced: 2024-04-14T22:37:35.191Z (7 months ago)
- Language: TypeScript
- Size: 412 KB
- Stars: 0
- Watchers: 38
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-testing
A repository for demonstrating how to test componentns and hooks created for
React.This repository uses nx for its monorepo workspace. You should only add new
application or library projects using [nx CLI generator
commands](https://nx.dev/latest/react/react/overview).The nx command is installed locally. Where example nx commands are `nx g
@nrwl/react:library` include "yarn" as a prefix like so: `yarn nx g
@nrwl/react:library`## Contents
- [Testing hooks](libs/hook-testing/README.md)
## Commands
### tests
- `yarn nx test ` Run all tests in a project.
- `yarn nx test --testFile=` Run all tests from a specific file in a project.
- `yarn nx affected:test` Run all tests based on files that have changed relative to the main branch.