ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.4k stars 124 forks source link

Test cases failed to run #39

Closed vomaksh closed 11 months ago

vomaksh commented 11 months ago

Describe your Environment OS: Ubuntu 22.04 (WSL 2) Paisa Version: master branch

Describe the bug 3/5 tests are failing

To Reproduce Steps to reproduce the behavior:

  1. Run npm test

Expected behavior All tests should pass.

ananthakumaran commented 11 months ago

I have set up GitHub actions and it runs on every commit. Refer to the below file for how to run the test, you can find the latest test run here https://github.com/ananthakumaran/paisa/actions/runs/6291039458/job/17079034327#step:4:550

https://github.com/ananthakumaran/paisa/blob/873c3c1ad3f3b5835c93f7f2dc2ce1bb16ec374b/.github/workflows/test.yml#L16-L18

Please use the discussions for questions like this, issue tracker is reserved for tracking bugs.

vomaksh commented 11 months ago

Now I get it, you are not running npm run test, instead you are running NODE_OPTIONS=--experimental-vm-modules npm run test.

But IMHO, keeping this command directly inside Makefile is not a good idea. Because if one has to run test cases in watch mode or wants to run npm run test command, one may not know this experimental flag you are using in NODE_OPTIONS. You can keep this flag inside test script in package.json.