Skip to content

test(build): type the esbuild dispose mock for Vitest 5 - #177

Merged
yusukebe merged 1 commit into
nextfrom
fix/build-test-types
Oct 15, 2026
Merged

yusukebe merged 1 commit into
nextfrom
fix/build-test-types

Conversation

@yusukebe

Copy link
Copy Markdown
Member

After #175, tsc --noEmit fails in build.test.ts: Vitest 5 types vi.fn() so it no longer fits the dispose of an esbuild context. Type the mock as () => Promise<void>. CI does not run tsc, so it did not show.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run check:fix to format and lint the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit e4de726 into next Oct 15, 2026
4 checks passed
@yusukebe
yusukebe deleted the fix/build-test-types branch October 15, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant