Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run unit tests? #175

Open
lonevox opened this issue Sep 11, 2024 · 2 comments
Open

How to run unit tests? #175

lonevox opened this issue Sep 11, 2024 · 2 comments

Comments

@lonevox
Copy link

lonevox commented Sep 11, 2024

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".

@Patashu
Copy link
Owner

Patashu commented Sep 11, 2024

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.

@jakub791
Copy link

jakub791 commented Sep 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants