Skip to content

Commit

Permalink
chore: fix tests and config
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Feb 3, 2025
1 parent 3351594 commit 3e762e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/internal/bind-this-to-member-functions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('internal', () => {
const someMethodWithoutBind = someModule.someMethod;

expect(() => someMethodWithoutBind()).toThrow(
new Error("Cannot read properties of undefined (reading 'faker')")
new TypeError("Cannot read properties of undefined (reading 'faker')")
);

bindThisToMemberFunctions(someModule);
Expand Down
2 changes: 1 addition & 1 deletion test/modules/finance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ describe('finance', () => {
expect(bitcoinAddress).toBeTruthy();
expect(bitcoinAddress).toBeTypeOf('string');
expect(bitcoinAddress).toSatisfy(isBtcAddress);
expect(bitcoinAddress).toSatisfy<string>((v) =>
expect(bitcoinAddress).toSatisfy((v: string) =>
regexes.some((r) => r.test(v))
);
}
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/apidocs/verify-jsdoc-tags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ ${examples}`;
expect(consoleWarnSpy).toHaveBeenCalled();
expect(deprecated).not.toBe('');
}

consoleWarnSpy.mockRestore();
});

describe.each(signature.parameters.map((p) => [p.name, p]))(
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
reporter: ['clover', 'cobertura', 'lcov', 'text'],
include: ['src'],
},
reporters: CI_PREFLIGHT ? ['basic', 'github-actions'] : ['basic'],
reporters: CI_PREFLIGHT ? ['default', 'github-actions'] : ['default'],
sequence: {
seed: VITEST_SEQUENCE_SEED,
shuffle: true,
Expand Down

0 comments on commit 3e762e7

Please # to comment.