Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Suggest implement ready-to-use testing system #77

Closed
TrungRueta opened this issue Feb 24, 2021 · 4 comments
Closed

Suggest implement ready-to-use testing system #77

TrungRueta opened this issue Feb 24, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@TrungRueta
Copy link

Hi!, thank for you project helped developers integrate vitejs faster! As you see the most thing missing in vite eco-system for now is testing, still has not any office choice to setup testing, (jest | mocha ..). Do you think we can go forward a step to setup testing included in vitesse ?

Thank!

@antfu
Copy link
Member

antfu commented Mar 11, 2021

What kind of tests you are expecting? Unit tests or E2E tests?

@antfu antfu added the enhancement New feature or request label Mar 11, 2021
@axe-me
Copy link

axe-me commented Mar 11, 2021

I actually just started a new project yesterday with this template, and right now adding jest to the project. I can help to add jest to the template with a PR if you think it's something good to have for this template.

@axe-me
Copy link

axe-me commented Mar 11, 2021

after spending some time on this, seems like making a vite transformer for jest is blocked by jest async transformer feature atm. see vitejs/vite#1955

Without transform with vite, lots vite plugins that this template is using won't work properly.

As don't know when Jest27 gonna release, an alternative is use web test runner + mocha

@ChasLui
Copy link

ChasLui commented May 10, 2021

I want to integrate jest and cypress

@antfu-collective antfu-collective locked and limited conversation to collaborators Jul 24, 2021
@antfu antfu closed this as completed Jul 24, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants