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

Offer Jest as a testing solution for testing extensions #23

Open
sketchbuch opened this issue Jul 1, 2019 · 5 comments
Open

Offer Jest as a testing solution for testing extensions #23

sketchbuch opened this issue Jul 1, 2019 · 5 comments
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities

Comments

@sketchbuch
Copy link

Currently everything is setup up for mocha. Can you also provide a testrunner for jest and let people choose what testing framework they want to use?

@dbaeumer
Copy link
Member

dbaeumer commented Jul 1, 2019

@sketchbuch you mean for developing extensions?

@sketchbuch
Copy link
Author

Yes. Is this possible?

@bpasero bpasero transferred this issue from microsoft/vscode Jul 1, 2019
@bpasero bpasero assigned octref and unassigned bpasero Jul 1, 2019
@sketchbuch
Copy link
Author

Hmmm... i think I poste din teh wrong project. I meant vscode not vscode-test. I'm not even sure what this project does. When you use "yo code" to create a skeleton extension I want to be able to choose a testing framework too- between the existing Mocha and Jest,

@octref
Copy link
Contributor

octref commented Jul 1, 2019

This depends on jest having a programmatic API: jestjs/jest#5048.

You can give jestjs/jest#5048 (comment) a try. Just replace the content of the test runner with whatever jest invocation you need to do to run test. See to-be-published testing docs.

Contribution is welcome if you want to add your jest-based test runner as a sample under https://github.com/Microsoft/vscode-extension-samples or updated vscode-docs.

@octref octref added help wanted Issues identified as good community contribution opportunities feature-request Request for new features or functionality labels Jul 1, 2019
@octref octref added this to the February 2020 milestone Feb 3, 2020
@octref octref modified the milestones: February 2020, April 2020 Apr 10, 2020
@bpasero bpasero removed this from the April 2020 milestone Oct 27, 2020
@daddykotex
Copy link

FYI: I've pulled things from here and there around the web and ended up: https://github.com/daddykotex/jest-tests

it seems to work fine and uses jest as a test runner instead of mocha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests

5 participants