Skip to content

test: add consumer type-check integration tests#5

Closed
nstrayer wants to merge 1 commit intomainfrom
test/consumer-typecheck-integration
Closed

test: add consumer type-check integration tests#5
nstrayer wants to merge 1 commit intomainfrom
test/consumer-typecheck-integration

Conversation

@nstrayer
Copy link
Copy Markdown
Collaborator

@nstrayer nstrayer commented May 1, 2026

Summary

  • Adds integration tests that simulate a real npm consumer importing @posit-dev/positron and running tsc against it
  • Tests three tsconfig configurations: commonjs + skipLibCheck: false, commonjs + skipLibCheck: true, and Node16 module resolution
  • Each test creates a temp project, symlinks our dist/ and @types/vscode into it, writes a minimal .ts file, and runs tsc --noEmit

Note: The skipLibCheck: false and Node16 tests will fail on main because issue #4 is not yet fixed there. They pass on fix/issue-4-bundle-vscode-dts. This PR can merge after #4 is resolved, or simultaneously.

Test plan

Simulates a real npm consumer by creating a temp project that imports
@posit-dev/positron and runs tsc against it. Tests three configurations:
commonjs with skipLibCheck false (the issue #4 case), commonjs with
skipLibCheck true, and Node16 module resolution.
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