mainmatter / qunit-dom

High Level DOM Assertions for QUnit
MIT License
179 stars 123 forks source link

Switch to Vitest because it supports ESM #2066

Closed NullVoxPopuli closed 1 year ago

NullVoxPopuli commented 1 year ago

While working on https://github.com/mainmatter/qunit-dom/pull/2065 I was reminded that jest does not have adequate TS / ESM support (it still thinks everything is cjs -- and just technically can be set up to work with native ESM, but it's a huuuuge pain, and no one has time for that).

So here is jest replaced by vitest. I had the option of keeping the "globals" support, but it's better practice to import the things used rather than rely on globals (makes types and eslint easier when imported)

Both before and after this change are 39 test files with 329 tests.