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

Add an example using Vitest #1023

Closed
2 tasks done
arthuraulin opened this issue Dec 13, 2022 · 4 comments
Closed
2 tasks done

Add an example using Vitest #1023

arthuraulin opened this issue Dec 13, 2022 · 4 comments

Comments

@arthuraulin
Copy link

Checklist

Before making a feature request, I have:

Feature description

Add an example using Vitest as runner

Use case

When switching to Vite on a Vue application, I also replaced Jest with Vitest - however I'm struggling a bit to have my pact tests running as before. This issue makes me think it should be doable, but having a full example in the repo would be really helpful.
Thanks!

@mefellows
Copy link
Member

Thanks. My first thought was "not another test framework!" :P (this is one thing I love about Golang - there's just one that everyone uses and it's great that there aren't a million ways to write tests). Diatribe aside, if you do manage to get it working, I'd consider accepting a PR to this repo (or perhaps a document explaining how to do it with Vite), but i've already been thinking (and this) having all of the examples in this repo is causing maintenance issues for me, so I'm not sure I'm currently open to doing so.

I'll leave this open as a discussion for now at least.

@TimothyJones
Copy link
Contributor

See my comment on the other issue - I think the problem is that vitest says it's jest compatible, but it isn't.

@TimothyJones
Copy link
Contributor

TimothyJones commented Dec 13, 2022

Here is a link to the documentation, where they give a type signature for their beforeAlland then go on to describe behaviour that contradicts it ¯\_(ツ)_/¯

@mefellows
Copy link
Member

Closing this due to inactivity. Do feel free to post any info here on how you were able to get it working if you did!

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