https://github.com/christopherkade/unit-testing-demo
A simple unit testing demo to support one of my blog posts
https://github.com/christopherkade/unit-testing-demo
Last synced: 3 months ago
JSON representation
A simple unit testing demo to support one of my blog posts
- Host: GitHub
- URL: https://github.com/christopherkade/unit-testing-demo
- Owner: christopherkade
- Created: 2019-04-01T20:54:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T21:39:40.000Z (about 7 years ago)
- Last Synced: 2025-01-17T09:35:10.330Z (over 1 year ago)
- Language: HTML
- Size: 293 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Demo used in this [article](https://christopherkade.com/intro-to-testing).
Its purpose is to show the basics of unit testing a Front-End application using Jest and Enzyme.
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.