Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kazupon/vite-test-utils
- Owner: kazupon
- License: mit
- Created: 2022-08-03T04:56:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T19:24:19.000Z (5 months ago)
- Last Synced: 2024-10-23T19:14:14.398Z (13 days ago)
- Topics: e2e, test, utility, vite, vitest
- Language: TypeScript
- Homepage: https://kazupon.github.io/vite-test-utils/
- Size: 4.02 MB
- Stars: 31
- Watchers: 2
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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)