Skip to content

Commit

Permalink
chore(package): upgrade to @types/node v22 (#444)
Browse files Browse the repository at this point in the history
* chore(package): upgrade to @types/node v22

* style: lint:fix
  • Loading branch information
chimurai authored Sep 8, 2024
1 parent 9c55e90 commit 06aafbc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@types/jest": "29.5.12",
"@types/node": "20.16.1",
"@types/node": "22.5.4",
"@types/yargs": "17.0.33",
"husky": "9.1.5",
"jest": "29.7.0",
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/bin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('bin', () => {

it('should execute nok tests', async () => {
await expect(exec({ config: './tests/ok_some.config.mjs' })).rejects.toMatchInlineSnapshot(
`[Error: ❌ Not all requirements are satisfied]`
`[Error: ❌ Not all requirements are satisfied]`,
);
});

Expand All @@ -77,13 +77,13 @@ describe('bin', () => {
describe('Custom Checks', () => {
it('should execute nok tests', async () => {
await expect(
exec({ config: './tests/custom-check-always_fail.mjs' })
exec({ config: './tests/custom-check-always_fail.mjs' }),
).rejects.toMatchInlineSnapshot(`[Error: ❌ Not all custom requirements are satisfied]`);
});

it('should not reject with --force', async () => {
await expect(
exec({ config: './tests/custom-check-always_fail.mjs', force: true })
exec({ config: './tests/custom-check-always_fail.mjs', force: true }),
).resolves.toBe(undefined);
});
});
Expand Down
4 changes: 2 additions & 2 deletions src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function renderTable(rawResults: RawResult[] = []) {
const pass = satisfies
? `${logSymbols.success} ${chalk.dim('OK')}`
: optional
? `${logSymbols.warning} ${chalk.dim('NOK (optional)')}`
: `${logSymbols.error} ${chalk.dim('NOK')}`;
? `${logSymbols.warning} ${chalk.dim('NOK (optional)')}`
: `${logSymbols.error} ${chalk.dim('NOK')}`;

return {
bin: optional ? chalk.dim(`${bin}`) : bin,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,10 @@
dependencies:
undici-types "~6.11.1"

"@types/node@20.16.1":
version "20.16.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.1.tgz#0b44b15271d0e2191ca68faf1fbe506e06aed732"
integrity sha512-zJDo7wEadFtSyNz5QITDfRcrhqDvQI1xQNQ0VoizPjM/dVAODqqIUWbJPkvsxmTI0MYRGRikcdjMPhOssnPejQ==
"@types/node@22.5.4":
version "22.5.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.4.tgz#83f7d1f65bc2ed223bdbf57c7884f1d5a4fa84e8"
integrity sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==
dependencies:
undici-types "~6.19.2"

Expand Down

0 comments on commit 06aafbc

Please sign in to comment.