Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.