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

Mock VS Code before importing modules in scheduled cli output test #1737

Merged
merged 3 commits into from
May 19, 2022

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented May 19, 2022

Recent failure caused by importing of vscode into processExecution (#1731)

Tests now pass locally.

@mattseddon mattseddon force-pushed the fix-scheduled-cli-test branch from 3185ab9 to 6bb5209 Compare May 19, 2022 02:07
@mattseddon mattseddon marked this pull request as ready for review May 19, 2022 02:08
import { setupVenv } from '../../python'
import { runMocha } from '../util/mocha'

const importModulesAfterMockingVsCode = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[F] This pattern should prevent this from happening again in the future.

@mattseddon mattseddon requested a review from a team May 19, 2022 02:14
@mattseddon mattseddon enabled auto-merge (squash) May 19, 2022 18:06
@codeclimate
Copy link

codeclimate bot commented May 19, 2022

Code Climate has analyzed commit aaea5a4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.7% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 4edbc5f into main May 19, 2022
@mattseddon mattseddon deleted the fix-scheduled-cli-test branch May 19, 2022 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants