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

[dev-tool] Host tests. #23852

Closed
wants to merge 4 commits into from

Conversation

witemple-msft
Copy link
Member

Work in Progress

This PR enables dev-tool to host mocha transpilation instead of using esm and ts-node separately. This makes execution of test code the same as execution of sample code, and enables one of the goodies that we have in samples (importing from a package itself by name rather than by path) work in tests as well as samples. This is pretty nice because the paths entries in tsconfig.json can sometimes make the editor want to import things by package name instead of by path, and this can lead to weird runtime errors when it doesn't work in tests but does work in samples.

It also allows tests to re-use utility modules from samples, which can save some code duplication such as in Form Recognizer where model schemas are checked in twice, once for samples and once for tests.

@witemple-msft witemple-msft self-assigned this Nov 15, 2022
@ghost ghost added the dev-tool Issues related to the Azure SDK for JS dev-tool label Nov 15, 2022
@witemple-msft witemple-msft changed the title Dev tool/host mocha [dev-tool] Host tests. Nov 15, 2022
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Jan 20, 2023
@ghost
Copy link

ghost commented Jan 20, 2023

Hi @witemple-msft. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@witemple-msft
Copy link
Member Author

please keep open

@ghost ghost removed the no-recent-activity There has been no recent activity on this issue. label Jan 23, 2023
@witemple-msft
Copy link
Member Author

/azp run js - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions
Copy link

Hi @witemple-msft. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Jun 16, 2023
@github-actions
Copy link

Hi @witemple-msft. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions bot closed this Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tool Issues related to the Azure SDK for JS dev-tool no-recent-activity There has been no recent activity on this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant