Skip to content

test(slack): expand emulator coverage for emulate.dev 0.6.0 APIs#591

Open
oss-polar-bear wants to merge 2 commits into
vercel:mainfrom
oss-polar-bear:feat/slack-emulator-expansion
Open

test(slack): expand emulator coverage for emulate.dev 0.6.0 APIs#591
oss-polar-bear wants to merge 2 commits into
vercel:mainfrom
oss-polar-bear:feat/slack-emulator-expansion

Conversation

@oss-polar-bear
Copy link
Copy Markdown

Upgrade @emulators/* to 0.6.0 and add integration tests for DMs, reactions, fetch history, modals, scheduled messages, file uploads, member joins, and bookmarks against the in-process Slack emulator.

Upgrade @emulators/* to 0.6.0 and add integration tests for DMs, reactions,
fetch history, modals, scheduled messages, file uploads, member joins, and
bookmarks against the in-process Slack emulator.
Copilot AI review requested due to automatic review settings June 6, 2026 08:04
@oss-polar-bear oss-polar-bear requested a review from a team as a code owner June 6, 2026 08:04
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 6, 2026

@oss-polar-bear is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jun 6, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​emulators/​core@​0.6.0751008792100
Addednpm/​@​emulators/​slack@​0.6.07710010092100
Addednpm/​@​emulators/​github@​0.6.07810010092100

View full report

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Expands Slack emulator integration test coverage by adding end-to-end round-trip tests for additional Slack APIs/events (views, reactions, DMs, scheduled messages, file uploads, bookmarks, and message fetching), and refactors Slack interactivity request helpers to support multiple interactivity payload types.

Changes:

  • Refactor Slack interactivity request creation to a generic helper and add view_submission request generation.
  • Add multiple new Slack emulator integration tests covering views, reactions, DMs, scheduled messages, file uploads, bookmarks, and message fetching.
  • Update emulator dependencies to ^0.6.0 and expand bot token scopes used by the emulator tests.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/integration-tests/src/slack-utils.ts Generalize signed Slack interactivity request creation; add view_submission payload + request helper.
packages/integration-tests/src/emulator/slack/views.test.ts Add modal view open/update + view_submission delivery integration tests.
packages/integration-tests/src/emulator/slack/utils.ts Expand bot scopes and add new emulator helper functions (reactions, triggers, joins, bookmarks, seeding).
packages/integration-tests/src/emulator/slack/scheduled-messages.test.ts Add integration test for scheduling + canceling messages.
packages/integration-tests/src/emulator/slack/reactions-events.test.ts Add integration test for reaction_added forwarding and handler behavior.
packages/integration-tests/src/emulator/slack/post-message.test.ts Replace markdown-post test with chat.postEphemeral test asserting emulator storage.
packages/integration-tests/src/emulator/slack/oauth.test.ts Strengthen OAuth assertions to validate bot user id format and stored bot user record.
packages/integration-tests/src/emulator/slack/member-joined-channel.test.ts Add integration test for member_joined_channel via conversations.join.
packages/integration-tests/src/emulator/slack/file-upload.test.ts Add integration test for external file upload flow and store assertions.
packages/integration-tests/src/emulator/slack/fetch-messages.test.ts Add integration tests for channel history + threaded replies fetching.
packages/integration-tests/src/emulator/slack/dm-events.test.ts Add integration test for DM open + inbound DM delivery and reply posting.
packages/integration-tests/src/emulator/slack/bookmarks.test.ts Add integration test for bookmarks add/list API behavior via emulator.
packages/integration-tests/package.json Bump emulator devDependencies to ^0.6.0.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/integration-tests/src/emulator/slack/utils.ts Outdated
Comment thread packages/integration-tests/src/emulator/slack/views.test.ts Outdated
Comment thread packages/integration-tests/src/emulator/slack/scheduled-messages.test.ts Outdated
Comment thread packages/integration-tests/src/emulator/slack/reactions-events.test.ts Outdated
Comment thread packages/integration-tests/src/emulator/slack/member-joined-channel.test.ts Outdated
Comment thread packages/integration-tests/src/emulator/slack/dm-events.test.ts Outdated
Comment thread packages/integration-tests/src/emulator/slack/fetch-messages.test.ts Outdated
Comment thread packages/integration-tests/src/slack-utils.ts
Fix definite-assignment patterns in new integration tests, restore JSDoc
placement for waitForDelivery, and default view_submission private_metadata
to an empty string for Slack-realistic payloads.
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