From 0a2dcac0aff0b2faf2da1db874b1341a3567c3f1 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Thu, 5 Nov 2026 11:27:48 -0500 Subject: [PATCH] build: run every test file in oauth and cli-test 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 --- packages/cli-test/package.json | 4 ++-- packages/oauth/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli-test/package.json b/packages/cli-test/package.json index 33b689919..0b47555fc 100644 --- a/packages/cli-test/package.json +++ b/packages/cli-test/package.json @@ -33,8 +33,8 @@ "build:clean": "shx rm -rf ./dist", "docs": "npx typedoc --plugin typedoc-plugin-markdown", "prepack": "npm run build", - "test": "npm run build && bash -c 'cross-env SLACK_CLI_PATH=/doesnt/matter node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/**/*.test.ts'", - "test:coverage": "npm run build && cross-env SLACK_CLI_PATH=/doesnt/matter node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/**/*.test.ts" + "test": "npm run build && bash -c 'cross-env SLACK_CLI_PATH=/doesnt/matter node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts src/*/*.test.ts src/*/*/*.test.ts'", + "test:coverage": "npm run build && bash -c 'cross-env SLACK_CLI_PATH=/doesnt/matter node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts src/*/*.test.ts src/*/*/*.test.ts'" }, "dependencies": { "tree-kill": "^1.2.2", diff --git a/packages/oauth/package.json b/packages/oauth/package.json index 1d00c24b5..50c22fea1 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -35,8 +35,8 @@ "build:clean": "shx rm -rf ./dist", "docs": "npx typedoc --plugin typedoc-plugin-markdown", "prepack": "npm run build", - "test": "npm run build && bash -c 'node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/**/*.test.ts'", - "test:coverage": "npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/**/*.test.ts", + "test": "npm run build && bash -c 'node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts src/*/*.test.ts'", + "test:coverage": "npm run build && bash -c 'node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts src/*/*.test.ts'", "watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm run build" }, "dependencies": {