/vite-test-utils

Test utilties for Vite Application

Primary LanguageTypeScriptMIT LicenseMIT

vite-test-utils

NPM downloads version CI

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.

πŸ™Œ Contributing guidelines

If you are interested in contributing to vite-test-utils, I highly recommend checking out the contributing guidelines here. You'll find all the relevant information such as how to make a PR, how to setup development) etc., there.

πŸ’– Special thanks!

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

  • πŸ’š nuxt
  • 🟑 unjs
    • use the several packages
  • ⚑ vite
    • fork from config loading logic
  • βœ… vitest
    • integrate setup / teardown hooks and context API

©️ License

MIT