Skip to content

test: smoke-test the built VS Code extension bundle - #84

Merged
bhouston merged 1 commit into
mainfrom
test/83-extension-bundle-smoke
Oct 1, 2026
Merged

bhouston merged 1 commit into
mainfrom
test/83-extension-bundle-smoke

Conversation

@bhouston

@bhouston bhouston commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Closes #83

Behavior

Adds a test that loads the built dist/extension.js with a stubbed vscode module and calls activate(), so load-time/interop breakage (cf. sharp_1.default is not a function in sharp-image-vscode-extension) fails CI instead of shipping. Included in the root vitest config; CI already runs pnpm build before pnpm test.

Validation

pnpm build, pnpm tsc, pnpm lint, pnpm test pass locally (754 passed). Confirmed the test fails when activate is made to throw in the bundle and passes on the real bundle.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bhouston
bhouston merged commit 07a58b4 into main Oct 1, 2026
2 checks passed
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: smoke-test the built VS Code extension bundle

2 participants