https://github.com/coderbyheart/testing-with-node
Minimal example for writing tests with Node.js
https://github.com/coderbyheart/testing-with-node
Last synced: about 1 year ago
JSON representation
Minimal example for writing tests with Node.js
- Host: GitHub
- URL: https://github.com/coderbyheart/testing-with-node
- Owner: coderbyheart
- License: bsd-3-clause
- Created: 2023-08-15T14:05:53.000Z (almost 3 years ago)
- Default Branch: saga
- Last Pushed: 2023-08-22T09:50:55.000Z (almost 3 years ago)
- Last Synced: 2025-06-04T11:26:22.054Z (about 1 year ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setting up testing for a Node.js project
[](https://github.com/coderbyheart/testing-with-node/actions/workflows/test.yml)
-
-
-
Run tests:
```bash
npm test
```
Watch:
```bash
npx tsx --test --watch **/*.spec.ts
```
## Video
I made a video recording of building this repo, but the microphone dropped out in the middle, so [here are the first 10 minutes](https://www.youtube.com/watch?v=I9EIk9klpZI), which nevertheless shows how to set up testing for a Node.js project from scratch with TypeScript, the Node.js test runner and assertion library.