glutinum-org / cli

https://glutinum.net/
59 stars 4 forks source link

Move back to Ava JS test framework... #53

Closed MangelMaxime closed 7 months ago

MangelMaxime commented 7 months ago

Even if Vitest as some nice features like the VSCode extension and ability to have custom path for the snapshot files, it is not stable enough for me.

JavaScript debugger terminal doesn't works correctly, need to kill the terminal as the process cannot be killed.

The VSCode extension doesn't work that great, not always loading the latest version of the tests, tests not terminated after debugger detached / clicked on stop button.

I think using generated test structure like done now + AvaJS would give a better developper overall even if we less goodies ^^

MangelMaxime commented 7 months ago

Well ava doesn't support multiple configuration files meaning we will not be able to have several tests projects.

Also, AVA kind of expect the tests to run from package.json CWD...

Jest doesn't support ESM, they still have it marked as experimental.

Tests ecosystem seems to be not in a great shape right now in JavaScript...

MangelMaxime commented 7 months ago

Let's give Vitest more chance and see if it's possible to work around the limitation / quirks of it. I think this is going to be one of the main tests framework for JavaScript in the future as Vite also has a lot of attention.