Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrisoncramer/vitest-tdd-mocks
Building up a configurable mocking and testing environment for Vitest with TDD
https://github.com/harrisoncramer/vitest-tdd-mocks
javascript tdd vite vitest vue vuejs
Last synced: about 1 month ago
JSON representation
Building up a configurable mocking and testing environment for Vitest with TDD
- Host: GitHub
- URL: https://github.com/harrisoncramer/vitest-tdd-mocks
- Owner: harrisoncramer
- Created: 2022-10-30T20:32:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T23:04:21.000Z (over 2 years ago)
- Last Synced: 2025-01-11T04:43:26.464Z (about 1 month ago)
- Topics: javascript, tdd, vite, vitest, vue, vuejs
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mocking With Vitest
This repository is my playground for learning TDD with Vitest.
The components that are being tested are VueJS components. I'm also mocking the Axios library.
The mock for the axios library is contained in `__mocks__` and is intended to be configurable via the `initialize` function called inside of the different test blocks.