Skip to content

chore: rename tsconfig files for VSCode type discovery#1991

Merged
marikaner merged 8 commits into
mainfrom
tsconfig
Jul 3, 2026
Merged

chore: rename tsconfig files for VSCode type discovery#1991
marikaner merged 8 commits into
mainfrom
tsconfig

Conversation

@marikaner

Copy link
Copy Markdown
Contributor

Currently when working with jest and vscode none of the jest globals are found, which makes it hard to work with the tests.
I didn't find a way to set the tsconfig directly, but given the new typecheck I have the impression that this way around it is more correct anyways.

Changes:

  • rename tsconfig.json => tsconfig.base.json
  • rename tsconfig.test.json => tsconfig.json

@hyperspace-insights

Copy link
Copy Markdown
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:


Rename TSConfig Files to Improve VSCode Jest Type Discovery

Chore

🔧 Restructured TypeScript configuration files so that VSCode can properly discover Jest globals when working with tests. Previously, Jest-specific types were defined in tsconfig.test.json, which VSCode did not pick up automatically — leading to unresolved Jest globals in the editor.

The fix promotes the test-focused config to tsconfig.json (the file VSCode uses by default), while the shared base compiler options are extracted into a new tsconfig.base.json.

Changes

  • tsconfig.base.json (new): Contains the shared base compiler options (target, module, strict, etc.) previously living in tsconfig.json.
  • tsconfig.json (was tsconfig.test.json): Now the root-level config that extends tsconfig.base.json, adds Jest types, and covers all package and test-util sources. This allows VSCode to resolve Jest globals automatically.
  • tsconfig.test.json (removed): Replaced by the renamed tsconfig.json.
  • jest.config.mjs: Updated ts-jest config to point to tsconfig.json instead of tsconfig.test.json.
  • package.json: Updated typecheck script to reference tsconfig.json.
  • tsconfig.typedoc.json: Updated extends to reference tsconfig.base.json.
  • packages/*/tsconfig.json, sample-cap/tsconfig.json, sample-code/tsconfig.json, tests/*/tsconfig.json: All updated to extend tsconfig.base.json instead of the old tsconfig.json.
  • packages/ai-api/tsconfig.json: Additionally excludes test/**/* from compilation.

  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.26.11

  • Output Template: Default Template
  • Correlation ID: dc013f82-cb5c-4f74-951c-22c98cfa3bc5
  • File Content Strategy: Full file content
  • LLM: anthropic--claude-4.6-sonnet
  • Summary Prompt: Default Prompt
  • Event Trigger: pull_request.opened

Comment thread tsconfig.json
davidkna-sap
davidkna-sap previously approved these changes Jul 3, 2026
@marikaner marikaner merged commit b9c5c0e into main Jul 3, 2026
15 checks passed
@marikaner marikaner deleted the tsconfig branch July 3, 2026 10:37
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.

2 participants