-
Notifications
You must be signed in to change notification settings - Fork 37
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
Test framework #117
Comments
Gladly. I've just been too lazy to do so. Am also open to suggestions as to which one should be used. |
Here's an example using jest #120 |
I already know jest. I just do not like the new dependency to babel. I would have a quick look at ava as a test runner, otherwise I would probably be with jest too. |
Background for the slight reservations against jest is the lack of esm support (issue list). Some dependencies (got, clipboardy, globby) switch to ESM-only modules. Since got is really important, I am considering switching to esm in the medium term. And got uses ava as test runner, that's why I would want to take a quick look at it. And for mocking Sinon is used. |
Appreciate the ESM support issues. The approach here to add ava also does not support ESM, however the approach noted here got me pretty close, but it needs further changes. Even so, Sinon does not stub esm out of the box so the test still fails. I also had to add Finally a tiny comparison between ava & jest:
vs
|
really thanks for your efforts to contrast ava and jest. I think you are right about jest and it is currently the better choice. |
Ya no problem, I will do this evening. |
I would make a |
Thank you for your efforts. I have merged the jest PR. Thanks 👍😊 |
Are you open to the inclusion of an automated test framework?
I'd like to contribute to the project but find it difficult to do without an automated way to prove bug fixes and test features.
The text was updated successfully, but these errors were encountered: