ohmree / vitezilla

A mocking toolkit leveraging the power of TypeScript to enhance your Vitest experience.

Home Page:https://ohmree.github.io/vitezilla/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vitezilla

License Stars Watchers

Introduction

Vitezilla is a mocking toolkit leveraging the power of TypeScript to enhance your Vitest experience.
Read more on the main package's README.

Attribution

Vitezilla is first and foremost Lusito's Mockzilla, made to work with Vitest instead of Jest.
This project would not have been possible without Mockzilla and the vast majority of the actual code and documentation is very slightly modified from Mockzilla so huge thanks to Lusito for making the best webextension testing library I know of.
Generally if something works in Mockzilla it should work in Vitezilla too, except for Jest-style global objects in Mockzilla (e.g. deepMock, mockBrowser) that should instead be imported from the relevant package (e.g. vitezilla, @vitezilla/webextension) as is idiomatic in Vitest.

Repo layout

This is a monorepo managed using Turborepo, containing the following packages/apps:

Apps and Packages

  • docs: a VuePress app
  • core: the core vitezilla package
  • webextension: the @vitezilla/webextension package that enhances the Vitezilla core experience with webextension-specific utilities
  • eslint-config: eslint configurations (includes eslint-config-turbo, @antfu/eslint-config and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Report issues

Something not working quite as expected? Do you need a feature that has not been implemented yet? Check the issue tracker and add a new one if your problem is not already listed. Please try to provide a detailed description of your problem, including the steps to reproduce it.

Contribute

Awesome! If you would like to contribute with a new feature or submit a bugfix, fork this repo and send a pull request. Please, make sure all the unit tests are passing before submitting and add new ones in case you introduced new features.

License

Like Mockzilla, Vitezilla is released under the zlib/libpng license, meaning you can use it free of charge, without strings attached in commercial and non-commercial projects. Credits are appreciated but not mandatory.

About

A mocking toolkit leveraging the power of TypeScript to enhance your Vitest experience.

https://ohmree.github.io/vitezilla/

License:zlib License


Languages

Language:TypeScript 88.2%Language:JavaScript 6.0%Language:Shell 4.6%Language:SCSS 0.7%Language:Emacs Lisp 0.6%