Skip to content

Commit 9402305

Browse files
committed
chore: add global test command
1 parent 43e5173 commit 9402305

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/code-quality.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: pnpm dlx turbo check-types
3232

3333
- name: Run CommandKit Command Handler Tests
34-
run: pnpm test:commandkit
34+
run: pnpm run test
3535

3636
- name: Check Generated API Docs
3737
run: pnpm docgen:check

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build": "turbo run --filter=\"./packages/*\" build",
1414
"docgen": "tsx ./scripts/docs/generate-typescript-docs.ts && pnpm format",
1515
"docgen:check": "tsx ./scripts/docs/generate-typescript-docs.ts && git diff --exit-code -- apps/website/docs/api-reference",
16-
"test:commandkit": "pnpm --filter commandkit test -- --run spec/reload-commands.test.ts spec/context-command-identifier.test.ts spec/hierarchical-command-registration.test.ts spec/hierarchical-command-handler.test.ts spec/commands-router.test.ts spec/message-command-parser.test.ts spec/context-menu-registration.test.ts",
16+
"test": "turbo run --filter=\"./packages/*\" test",
1717
"prettier:check": "prettier --experimental-cli --check . --ignore-path=.prettierignore",
1818
"format": "prettier --experimental-cli --write . --ignore-path=.prettierignore"
1919
},

turbo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"dependsOn": ["^build"],
1717
"cache": false,
1818
"persistent": true
19+
},
20+
"test": {
21+
"dependsOn": ["build"],
22+
"outputs": [],
23+
"cache": true
1924
}
2025
}
2126
}

0 commit comments

Comments
 (0)