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

refactor: Remove WorkspaceContext Instance Export #4682

Merged

Conversation

klewis-sfdc
Copy link
Contributor

@klewis-sfdc klewis-sfdc commented Feb 15, 2023

What does this PR do?

  • Removes the exported workspaceContext instance, making consumers import and call getInstance, facilitating easier unit testing of related modules.

What issues does this PR fix or reference?

@W-12552130@, in support of facilitating unit-testing of #4677

Functionality Before

WorkspaceContext.getInstance() was called during module resolution, making it difficult to mock in unit tests.

Functionality After

WorkspaceContext.getInstance() is not called during module resolution.

Todo:

  • Fix failing integration tests

@klewis-sfdc klewis-sfdc marked this pull request as ready for review February 15, 2023 22:07
@klewis-sfdc klewis-sfdc requested a review from a team as a code owner February 15, 2023 22:07
Copy link
Contributor

@gbockus-sf gbockus-sf left a comment

Choose a reason for hiding this comment

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

sweet.

@klewis-sfdc klewis-sfdc merged commit 937ff9b into develop Feb 17, 2023
@klewis-sfdc klewis-sfdc deleted the ken/W-12552130--remove-ws-context-instance-export branch February 17, 2023 21:43
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.

None yet

2 participants