mozilla / translations

The code, training pipeline, and models that power Firefox Translations
https://mozilla.github.io/translations/
Mozilla Public License 2.0
155 stars 34 forks source link

Setup WASM test infrastructure for CI #920

Closed nordzilla closed 2 weeks ago

nordzilla commented 3 weeks ago

This patch introduces infrastructure to test our WASM JS using https://vitest.dev/.

For now, it just configures everything and introduces a stubbed test file with a simple assertion.

Vitest looked simple, widely recommended, and easy to use to me, but the only JS testing framework that I've personally used is mochitest in the Mozilla Unified code.

If people have preferences of what we should use here, I'm happy to switch, and I'd rather do so sooner than later.

nordzilla commented 2 weeks ago

@jcristau I'm tagging you since you reviewed my previous patch related to this. I hadn't realized that Ben wasn't available to review this week.