Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kazupon/vite-test-utils

Test utilties for Vite Application
https://github.com/kazupon/vite-test-utils

e2e test utility vite vitest

Last synced: 5 days ago
JSON representation

Test utilties for Vite Application

Awesome Lists containing this project

README

        

# vite-test-utils

[![NPM downloads](https://img.shields.io/npm/dm/vite-test-utils.svg)](https://npmjs.com/package/vite-test-utils)
[![version](https://img.shields.io/npm/v/vite-test-utils/latest.svg)](https://npmjs.com/package/vite-test-utils)
[![CI](https://github.com/kazupon/vite-test-utils/actions/workflows/ci.yaml/badge.svg)](https://github.com/kazupon/vite-test-utils/actions/workflows/ci.yaml)

Test utilties for Vite Application

## 🌟 Features

- Approachable test utils
- Out-of-box like web starndard fetch API, manually server and browser control API, these can be used as they are.
- Instant server and browser start
- With vite dev or preview server and playwright, it’s no need to ready for boilerplate code for integration / e2e testing.
- Fixture based on vite config and overridable
- Get ready for your integration / e2e test environment with vite config and you can override it.
- Optimized for Vitest
- Feel the lightning speed integration / e2e testing with vitest!

## πŸ“ Documentation

See the [docs site](https://kazupon.github.io/vite-test-utils/).

## πŸ™Œ Contributing guidelines

If you are interested in contributing to `vite-test-utils`, I highly recommend checking out [the contributing guidelines](/CONTRIBUTING.md) here. You'll find all the relevant information such as [how to make a PR](/CONTRIBUTING.md#pull-request-guidelines), [how to setup development](/CONTRIBUTING.md#development-setup)) etc., there.

## πŸ’– Special thanks!

This project is inspired, influenced by the following awesome projects:

- πŸ’š [`nuxt`](https://v3.nuxtjs.org/)
- [`@nuxt/test-utils`](https://github.com/nuxt/framework/tree/main/packages/test-utils) package
- 🟑 [`unjs`](https://github.com/unjs)
- use the several packages
- ⚑ [`vite`](https://vitejs.dev/)
- fork from config loading logic
- βœ… [`vitest`](https://vitest.dev/)
- integrate setup / teardown hooks and context API

## ©️ License

[MIT](https://opensource.org/licenses/MIT)