Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(activity): Set Info.isLocal correctly #714

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

Merged
merged 5 commits into from
Jun 29, 2022
Merged

fix(activity): Set Info.isLocal correctly #714

merged 5 commits into from
Jun 29, 2022

Conversation

lorensr
Copy link
Contributor

@lorensr lorensr commented Jun 21, 2022

What was changed

@lorensr lorensr requested a review from bergundy June 21, 2022 22:20
Comment on lines 22 to 24
test.before(async () => {
workflowBundle = await bundleWorkflowCode({ workflowsPath: require.resolve('./workflows/local-activity-testers') });
});
Copy link
Member

Choose a reason for hiding this comment

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

Let's do this cleanly and put it in the test context.

Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Nice, just one comment

test.before(async (t) => {
t.context = {
workflowBundle: await bundleWorkflowCode({ workflowsPath: require.resolve('./workflows/local-activity-testers') }),
} as Context;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bergundy Like this? (Without the cast, the other props are optional, which adds a lot of ?. to the tests.)

Copy link
Member

Choose a reason for hiding this comment

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

t.context.workflowBundle = ...

@bergundy bergundy merged commit ada5736 into main Jun 29, 2022
@bergundy bergundy deleted the fix-is-local branch June 29, 2022 23:45
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.

2 participants