https://github.com/luigirazum/mv-testing-practice
A few practical tests for JS functions using the Jest library, following the AAA pattern and putting in practice the TDD approach.
https://github.com/luigirazum/mv-testing-practice
Last synced: 3 months ago
JSON representation
A few practical tests for JS functions using the Jest library, following the AAA pattern and putting in practice the TDD approach.
- Host: GitHub
- URL: https://github.com/luigirazum/mv-testing-practice
- Owner: luigirazum
- License: mit
- Created: 2022-12-21T18:00:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T22:45:37.000Z (almost 3 years ago)
- Last Synced: 2025-02-28T11:45:00.902Z (7 months ago)
- Language: JavaScript
- Size: 140 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mv-testing-practice 👨💻
### This repo is an exercise in which we will write a few practical tests for JavaScript functions using the [`Jest`](https://jestjs.io/) library.
- We have to make sure we follow the [AAA pattern](https://github.com/goldbergyoni/javascript-testing-best-practices#-%EF%B8%8F-12-structure-tests-by-the-aaa-pattern) to make our tests easier for other developers to read and understand.
- You will also try to use the TDD approach in practice.## Learning objectives
- Write unit tests for a JavaScript app.
- Use AAA pattern for unit tests.
- Explain why testing code is important.