Skip to content

Commit

Permalink
fix: use correct syntax for skipTest definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinH committed Aug 30, 2022
1 parent 5b242a9 commit 56438b2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ jobs:
cache: 'yarn'
- run: yarn install --frozen-lockfile

- name: Run type checking
run: yarn type-check

- name: Run unit tests
run: yarn test
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ declare namespace init {
* This function is called for every test setup and teardown to determine if the test should
* skip console checks from this package or not.
*/
skipTest?: ({ testName: string, testPath: string }) => boolean
skipTest?: (args: { testName: string; testPath: string }) => boolean
}
}

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
],
"scripts": {
"npm:publish": "np",
"test": "jest tests/index.test.js"
"test": "jest tests/index.test.js",
"type-check": "tsc --noEmit index.d.ts"
},
"dependencies": {
"chalk": "^4.1.0"
},
"devDependencies": {
"jest": "^27.5.1",
"np": "^7.2.0"
"np": "^7.2.0",
"typescript": "^4.8.2"
},
"files": [
"index.js",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4046,6 +4046,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@^4.8.2:
version "4.8.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790"
integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==

unique-string@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz"
Expand Down

0 comments on commit 56438b2

Please sign in to comment.