add TypeScript noEmit type‑check for ESM integration tests #7981
+613
−65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added integration tests
Resolves #7938
Changes:
Vitest type‑check integration: Added vitest.config.ts at the project root, with a typecheck block under the test section that only picks up files matching test/integrations/**/*.test-d.ts.
test/tsconfig.test.json: TS compiler options and include globs
index.test-d.ts: minimal declare-only sketch to validate p5 types
package.json: Added"test:types": "tsc --noEmit -p test/tsconfig.test.json" to run the type‑only suite.
Maintain: Stay within Vitest’s ecosystem to avoid tooling drift.
Focus: Cover only type correctness (no React/Vue runtimes), per original issue scope.
PR Checklist
npm run lint
passes