Skip to content

Commit

Permalink
Feature/run all checks (#2210)
Browse files Browse the repository at this point in the history
* Update GitHub tests to include type checks
* Disable git line-ending changes
  • Loading branch information
shadowspawn authored Jun 15, 2024
1 parent 19fa79f commit 3fa29f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# disable line-ending changes (otherwise Windows developers with default settings from git install see Prettier wanting to fix every file)
* -text
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ jobs:
run: npm ci
- name: npm test
run: npm test
- name: npm run check:lint
# switch to full check when have run prettier on all files
run: npm run check:lint
- name: npm run check
run: npm run check
7 changes: 3 additions & 4 deletions typings/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ expectType<commander.Command>(
// action
expectType<commander.Command>(program.action(() => {}));
expectType<commander.Command>(program.action(async () => {}));
program
.action(function () {
expectType<typeof program>(this)
})
program.action(function () {
expectType<typeof program>(this);
});

// option
expectType<commander.Command>(program.option('-a,--alpha'));
Expand Down

0 comments on commit 3fa29f7

Please sign in to comment.