Skip to content

fix(test): add afterEach import and remove unused variables #286

fix(test): add afterEach import and remove unused variables

fix(test): add afterEach import and remove unused variables #286

Triggered via push October 29, 2025 15:21
Status Failure
Total duration 2m 2s
Artifacts

ci.yml

on: push
Run CI Pipeline  /  ...  /  Run Lint Check
30s
Run CI Pipeline / 🧹 Lint Check / Run Lint Check
Run CI Pipeline  /  ...  /  Run Type Check
24s
Run CI Pipeline / 🔍 Type Check / Run Type Check
Matrix: Run CI Pipeline / 🧪 Test Matrix / test-matrix
Fit to window
Zoom out
Zoom in

Annotations

60 errors
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/json.test.ts#L687
Type '() => void' is not assignable to type '((start?: number, end?: number) => string) | ((start?: number, end?: number) => Buffer<ArrayBuffer>)'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/json.test.ts#L686
Type '() => void' is not assignable to type '(target: Uint8Array<ArrayBufferLike>, targetStart?: number, sourceStart?: number, sourceEnd?: number) => number'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/constants/platform.test.ts#L206
Property 'toEndWith' does not exist on type 'Assertion<string>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/cacache.test.ts#L571
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/cacache.test.ts#L446
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/argv-flags.test.ts#L424
Conversion of type '{ debug: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/argv-flags.test.ts#L423
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: test/argv-flags.test.ts#L419
Conversion of type '{ verbose: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/json.test.ts#L687
Type '() => void' is not assignable to type '((start?: number, end?: number) => string) | ((start?: number, end?: number) => Buffer<ArrayBuffer>)'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/json.test.ts#L686
Type '() => void' is not assignable to type '(target: Uint8Array<ArrayBufferLike>, targetStart?: number, sourceStart?: number, sourceEnd?: number) => number'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/constants/platform.test.ts#L206
Property 'toEndWith' does not exist on type 'Assertion<string>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/cacache.test.ts#L571
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/cacache.test.ts#L446
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/argv-flags.test.ts#L424
Conversion of type '{ debug: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/argv-flags.test.ts#L423
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: test/argv-flags.test.ts#L419
Conversion of type '{ verbose: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/json.test.ts#L687
Type '() => void' is not assignable to type '((start?: number, end?: number) => string) | ((start?: number, end?: number) => Buffer<ArrayBuffer>)'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/json.test.ts#L686
Type '() => void' is not assignable to type '(target: Uint8Array<ArrayBufferLike>, targetStart?: number, sourceStart?: number, sourceEnd?: number) => number'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/constants/platform.test.ts#L206
Property 'toEndWith' does not exist on type 'Assertion<string>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/cacache.test.ts#L571
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/cacache.test.ts#L446
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/argv-flags.test.ts#L424
Conversion of type '{ debug: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/argv-flags.test.ts#L423
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest: test/argv-flags.test.ts#L419
Conversion of type '{ verbose: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/json.test.ts#L687
Type '() => void' is not assignable to type '((start?: number, end?: number) => string) | ((start?: number, end?: number) => Buffer<ArrayBuffer>)'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/json.test.ts#L686
Type '() => void' is not assignable to type '(target: Uint8Array<ArrayBufferLike>, targetStart?: number, sourceStart?: number, sourceEnd?: number) => number'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/constants/platform.test.ts#L206
Property 'toEndWith' does not exist on type 'Assertion<string>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/cacache.test.ts#L571
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/cacache.test.ts#L446
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/argv-flags.test.ts#L424
Conversion of type '{ debug: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/argv-flags.test.ts#L423
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: test/argv-flags.test.ts#L419
Conversion of type '{ verbose: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/json.test.ts#L687
Type '() => void' is not assignable to type '((start?: number, end?: number) => string) | ((start?: number, end?: number) => Buffer<ArrayBuffer>)'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/json.test.ts#L686
Type '() => void' is not assignable to type '(target: Uint8Array<ArrayBufferLike>, targetStart?: number, sourceStart?: number, sourceEnd?: number) => number'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/constants/platform.test.ts#L206
Property 'toEndWith' does not exist on type 'Assertion<string>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/cacache.test.ts#L571
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/cacache.test.ts#L446
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/argv-flags.test.ts#L424
Conversion of type '{ debug: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/argv-flags.test.ts#L423
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest: test/argv-flags.test.ts#L419
Conversion of type '{ verbose: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/json.test.ts#L687
Type '() => void' is not assignable to type '((start?: number, end?: number) => string) | ((start?: number, end?: number) => Buffer<ArrayBuffer>)'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/json.test.ts#L686
Type '() => void' is not assignable to type '(target: Uint8Array<ArrayBufferLike>, targetStart?: number, sourceStart?: number, sourceEnd?: number) => number'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/constants/platform.test.ts#L206
Property 'toEndWith' does not exist on type 'Assertion<string>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/cacache.test.ts#L571
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/cacache.test.ts#L446
Argument of type '(key: string, options?: GetOptions) => Promise<CacheEntry>' is not assignable to parameter of type '(value: string, index: number, array: string[]) => Promise<CacheEntry>'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/argv-flags.test.ts#L424
Conversion of type '{ debug: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/argv-flags.test.ts#L423
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest: test/argv-flags.test.ts#L419
Conversion of type '{ verbose: string; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest
Conversion of type '{ debug: number; }' to type 'FlagValues' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.