pokerogue icon indicating copy to clipboard operation
pokerogue copied to clipboard

Testing setup

Open PhilipHayes opened this issue 9 months ago • 1 comments

A barebones structure for working with unit testing in vitest.

PhilipHayes avatar May 13 '24 23:05 PhilipHayes

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.

f-fsantos avatar May 14 '24 09:05 f-fsantos

Closed for https://github.com/pagefaultgames/pokerogue/pull/1908

f-fsantos avatar Jun 07 '24 20:06 f-fsantos