Initially I planned to go with Vitest, but after some research it seems the gains are pretty marginal compared to Jest, so no reason to bring another technology in that case.
This is a basic setup for proper JSDOM initialization; I anticipate most tests to be integration tests, as it is simply easier to mount everything without mocking anything. The overhead should be relatively simple even for pretty elaborate tests.
Description
Initially I planned to go with Vitest, but after some research it seems the gains are pretty marginal compared to Jest, so no reason to bring another technology in that case.
This is a basic setup for proper JSDOM initialization; I anticipate most tests to be integration tests, as it is simply easier to mount everything without mocking anything. The overhead should be relatively simple even for pretty elaborate tests.