microsoft / docusaurus-plugins

Plugins for Docusaurus and Rise4Fun
https://microsoft.github.io/docusaurus-plugins/
MIT License
12 stars 2 forks source link

Converts to vitest from jest #20

Closed scalvert closed 1 year ago

scalvert commented 1 year ago

Summary

This PR converts from using jest to a fully jest-compliant replacement: vitest. Vitest has a number of features that provide a superior experience with jest, including:

This change makes using tests with TypeScript, and ultimately on to ESM, much easier than jest.

⚠️ Also important to note: I've added the dependencies once, in the root package.json. One of the cool aspects of workspaces is our ability to share devDependencies across internal packages, making managing test dependencies much simpler.

pelikhan commented 1 year ago

LGTM