libcraft-games / jay-zeronis-unusual-kitchen

A little idle game called Fuck You, made using Vue and Vite
https://libcraft-games.github.io/jay-zeronis-unusual-kitchen/
MIT License
0 stars 0 forks source link

TESTS (Last to do of the 5 tasks to start) #5

Open OtherwiseJunk opened 1 year ago

OtherwiseJunk commented 1 year ago

Ok now that everything is upgraded and nice and pretty, we should add some unit tests so we can feel more comfortable changing code

OtherwiseJunk commented 1 year ago

https://pinia.vuejs.org/cookbook/testing.html

Our Pinia store has basically all our game logic, so that should be the focus of testing.

https://vuedose.tips/how-to-test-web-workers-with-jest

Web Worker also could use some tests

OtherwiseJunk commented 1 year ago

https://vitest.dev/guide/

We should use Vitest it sounds ilke

OtherwiseJunk commented 1 year ago

https://www.npmjs.com/package/@vitest/web-worker

Looks like this can be used to test web-workers too