Replace Mocha and Jest with Vitest by eemeli · Pull Request #652 · projectfluent/fluent.js
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very straightforward.
| LocalizationProvider, | ||
| Localized, | ||
| } from "../esm/index.js"; | ||
| import { vi } from "vitest"; |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see jest is available as a global, but vitest need to be imported. No strong preference for either approach here, just curious if this is the the different default behavior of the libraries or a deliberate change.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.