getodk / central-frontend

Vue.js based frontend for ODK Central
https://docs.getodk.org/central-intro/
Apache License 2.0
32 stars 56 forks source link

Use Vitest names for testing globals #999

Closed matthew-white closed 3 months ago

matthew-white commented 3 months ago

Vitest offers much of the functionality that Mocha does. It provides a describe() function, it(), as well as hooks like beforeEach() and afterEach(). However, there are some differences:

A future PR will actually replace Mocha with Vitest. However, it'll reduce the size of that PR to start renaming these globals now. This PR uses Vitest names for testing globals, making replacements along the lines of what's described above. It then specifies those names in the ESLint config. Related issue: #671

What has been done to verify that this works as intended?

Testing and linting continue to pass.

Before submitting this PR, please make sure you have: