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 helloworld-jest-test-sample #251

Closed
wants to merge 3 commits into from
Closed

Add helloworld-jest-test-sample #251

wants to merge 3 commits into from

Conversation

bmealhouse
Copy link

Sample for upcoming jest documentation: microsoft/vscode-docs#3363

@msftclas
Copy link

msftclas commented Feb 5, 2020

CLA assistant check
All CLA requirements met.


You can find the accompanying documentation at:

- https://code.visualstudio.com/api/working-with-extensions/testing-extension#jest
Copy link
Author

@bmealhouse bmealhouse Feb 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I have the docs PR open, I updated this link.

@bmealhouse
Copy link
Author

@octref - Should I include a link to this sample in the Getting Started section of the README.md?

@octref
Copy link
Contributor

octref commented Mar 2, 2020

You can find the accompanying documentation at:

- https://code.visualstudio.com/api/working-with-extensions/testing-extension#testing-extension-with-jest
- https://github.com/bmealhouse/vscode-jest-test-runner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't usually link to personal repos — sorry.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, that makes sense.

// process.env.JEST_TEST_RUNNER_SETUP = path.resolve(
// __dirname,
// './custom-vscode-jest-test-runner-setup.js'
// );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind pointing either to VS Code website in this section or moving https://github.com/bmealhouse/vscode-jest-test-runner#jest_test_runner_setup over to the README and point to it?

We would like to make sure all links link to official Microsoft resources.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NVM. I just realized that you published your own test-runner, and it makes sense to have documentation there.
Would you be interested in merging the code to vscode-test repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will look into moving this code over to the vscode-test repo and updating the docs accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, you can use extensionTestsEnv, see https://github.com/microsoft/vscode-test

Copy link
Author

@bmealhouse bmealhouse Mar 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened up a draft PR to move the runner over to vscode-test: microsoft/vscode-test#59

Copy link
Author

@bmealhouse bmealhouse Mar 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have completed my testing. After merging and releasing microsoft/vscode-test#59, the only thing remaining for this PR is to upgrade dependencies (and rebase if that's something you'd prefer).

@octref
Copy link
Contributor

octref commented Mar 2, 2020

Very good work! Just a few minor picks.

@octref octref added this to the March 2019 milestone Mar 3, 2020
// process.env.JEST_TEST_RUNNER_SETUP = path.resolve(
// __dirname,
// './custom-vscode-jest-test-runner-setup.js'
// );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, you can use extensionTestsEnv, see https://github.com/microsoft/vscode-test

@jasonwilliams
Copy link

@bmealhouse @octref is there much left on this? It seems close, whats the blockers?

"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/node_modules/vscode-test/out/jest-runner"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this path doesn't exist

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs to be merged and released before the path will exist: microsoft/vscode-test#59

@@ -0,0 +1,12 @@
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tslint is deprecated, can this be changed to eslint?
Or just remove it entirely

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
"compilerOptions": {
"module": "commonjs",
"target": "es6",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once changed bump VSCode up to “^1.49” in package.json

Base automatically changed from master to main February 22, 2021 17:58
@mjbvz mjbvz assigned connor4312 and unassigned octref Jul 14, 2021
@Tyriar Tyriar removed this from the March 2019 milestone Jul 14, 2021
@bmealhouse bmealhouse closed this Jan 29, 2023
@bmealhouse
Copy link
Author

Closed this PR since it's so old. Feel free to reopen if it's something you still plan to tackle @connor4312.

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

Successfully merging this pull request may close these issues.

7 participants