Skip to content

test: add test for esbuild/utils.ts#492

Merged
sxzz merged 2 commits intounjs:mainfrom
ysknsid25:test/add-test-for-esbuild-utils
Apr 9, 2025
Merged

test: add test for esbuild/utils.ts#492
sxzz merged 2 commits intounjs:mainfrom
ysknsid25:test/add-test-for-esbuild-utils

Conversation

@ysknsid25
Copy link
Contributor

resolves #489 but to be continue...

before

image

after

image

Signed-off-by: ysknsid25 <kengo071225@gmail.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Apr 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/unjs/unplugin@492

commit: e2a9b79

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filename is vitest.config.ts but import defineConfig from vite. so it Corrected.
and Coverage acquisition ranges were set for accurate measurements.

@antfu antfu requested review from Copilot and sxzz April 8, 2025 23:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

test/unit-tests/esbuild/utils.test.ts:118

  • Using async on the describe block may cause unexpected behavior; consider moving the async keyword to the individual test (it block) instead.
describe('createBuildContext', async () => {

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

test: Improve test coverage

3 participants