An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Setting up testing for a Node.js project

[![Run tests](https://github.com/coderbyheart/testing-with-node/actions/workflows/test.yml/badge.svg)](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.