Skip to content

build: run every test file in oauth and cli-test - #2818

Merged
mwbrooks merged 1 commit into
mainfrom
build-test-glob-depth
Nov 5, 2026
Merged

mwbrooks merged 1 commit into
mainfrom
build-test-glob-depth

Conversation

@WilliamBergamin

@WilliamBergamin WilliamBergamin commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This pull request makes the @slack/oauth and @slack/cli-test test scripts run every test file.

  • The shell doesn't support **, so src/**/*.test.ts only matched files one folder deep. oauth ran 16 of 76 tests and cli-test ran 28 of 108.
  • The scripts now list each folder depth instead (src/*.test.ts src/*/*.test.ts).
  • Node 20 can't expand globs on its own, so passing the glob straight to Node won't work.

Testing

Run npm test --workspace=packages/oauth and npm test --workspace=packages/cli-test. They report 76 and 108 tests (16 and 28 on main).

Requirements

🤖 Generated with Claude Code

The src/**/*.test.ts glob is expanded by the shell, and neither bash 3.2
nor dash supports globstar, so it only matched files one directory deep.
oauth ran 16 of 76 tests and cli-test 28 of 108. List each depth
explicitly, since Node 20 cannot expand globs passed to --test, and run
test:coverage through bash like test so both expand the same way.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@changeset-bot

changeset-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0a2dcac

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.79%. Comparing base (03e2724) to head (0a2dcac).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2818      +/-   ##
==========================================
+ Coverage   89.35%   93.79%   +4.43%     
==========================================
  Files          65       66       +1     
  Lines       10562    10571       +9     
  Branches      489      611     +122     
==========================================
+ Hits         9438     9915     +477     
+ Misses       1092      619     -473     
- Partials       32       37       +5     
Flag Coverage Δ
cli-hooks 93.75% <ø> (+4.54%) ⬆️
cli-test 93.75% <ø> (+4.54%) ⬆️
logger 93.75% <ø> (+4.54%) ⬆️
oauth 93.75% <ø> (+4.54%) ⬆️
socket-mode 93.75% <ø> (+4.54%) ⬆️
web-api 93.75% <ø> (+4.54%) ⬆️
webhook 93.75% <ø> (+4.54%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WilliamBergamin WilliamBergamin added tests M-T: Testing work only pkg:oauth applies to `@slack/oauth` pkg:cli-test applies to `@slack/cli-test` labels Nov 5, 2026
@WilliamBergamin WilliamBergamin self-assigned this Nov 5, 2026
@WilliamBergamin
WilliamBergamin marked this pull request as ready for review November 5, 2026 16:31
@WilliamBergamin
WilliamBergamin requested a review from a team as a code owner November 5, 2026 16:31

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

✅ Thanks @WilliamBergamin! Great catch, 16 of 76 tests is a sneaky one to miss.

@mwbrooks
mwbrooks merged commit ae8f4cd into main Nov 5, 2026
22 checks passed
@mwbrooks
mwbrooks deleted the build-test-glob-depth branch November 5, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:cli-test applies to `@slack/cli-test` pkg:oauth applies to `@slack/oauth` tests M-T: Testing work only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants