pokerogue
pokerogue copied to clipboard
Testing setup
A barebones structure for working with unit testing in vitest.
A couple of notes here:
- Currently as the tests are, they generate a bunch of failures. Probably it will be best to mark them as
describe.skip
until someone fills something inside of them. - Any test we try to kick off starts complaining about modules and undefined behavior. I'm not a js/ts expert, but it looks like this is coming from circular dependencies. We need to resolve those as we start adding tests, but that will require major refactorings of the entire codebase, so we can start out by adding tests on the more simple and isolated files like the utils.ts file.
Closed for https://github.com/pagefaultgames/pokerogue/pull/1908