break_eternity.js icon indicating copy to clipboard operation
break_eternity.js copied to clipboard

How to run unit tests?

Open lonevox opened this issue 1 year ago • 2 comments

I'm working on porting this library to GDScript and need to run the tests to ensure that I don't break anything when porting. I see the unit_tests.ts file, but I'm not sure how to run it. In package.json the test script is "test": "echo \"Error: no test specified\" && exit 1".

lonevox avatar Sep 11 '24 03:09 lonevox

I just copy and paste the test code into the console and run it manually. I don't know what procedures people use for automated unit tests in Javascriptland, sorry. Can make a pull request if you have a preference.

Patashu avatar Sep 11 '24 07:09 Patashu

I just copy and paste the test code into the console and run it manually. I don't know what procedures people use for automated unit tests in Javascriptland, sorry. Can make a pull request if you have a preference.

Node has a builtin module for just that now. Then you can just automate running the tests via github actions if you want.

jakub791 avatar Sep 29 '24 11:09 jakub791