leaderboardsgg / leaderboard-site

Frontend of Leaderboards.gg
https://leaderboards.gg/
GNU General Public License v3.0
55 stars 20 forks source link

Vitest test isolation and sequence.shuffle set to true #550

Closed buffet-time closed 1 year ago

buffet-time commented 1 year ago

What

Isolates the mounting of the compnents in tests to a given test instead of sharing as to prevent any false positive test passing. Enabled sequence.shuffle to true so that the tests run in a random order to ensure that tests are not effecting eachother.

Link to Issue

Closes https://github.com/leaderboardsgg/leaderboard-site/issues/534

Acceptance

Steps for testing

Run the tests quite a few times to ensure shuffle is working properly. for your convienence pnpm test && pnpm test && pnpm test && pnpm test