Mirroar / hivemind

Fully automated open source AI core for the game screeps. Also usable as an opponent on private servers.
MIT License
29 stars 10 forks source link

Jest test runner #64

Open FutureAstroMiner opened 2 years ago

FutureAstroMiner commented 2 years ago

I noticed that some of the tests in the utilities test file will no longer work (due to some refactoring that was done last year.

I have done some work to use the jest typescript starter that includes converting over some of your existing tests.

Up to you if you want them or not.

I had to add hivemind to global as I couldn't get the tests to work otherwise. There might be a way but I am not sure.

I had to disable some of the tests as I couldn't see what they were testing. This could be improved upon.

This might be better committed to a branch and worked on there but up to you.

Mirroar commented 2 years ago

Thank you! I was thinking of moving from ava to jest because that's what the typescript starter uses, so this will be a nice base for doing that. I'll not merge the PR as it is, since I want to keep xo as my linting tool and am in the process of reducing dependencies on hivemind.ts