Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/ai-studio/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"verbatimModuleSyntax": true,
"types": ["node", "vite/client", "vite-plugin-svgr/client"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since test.globals: true is on in both apps, could you add "vitest/globals" to types here and in apps/demo/tsconfig.json, like packages/sdk and packages/ui do? Otherwise a spec written in the ui style (describe without an import) passes vitest but fails the new typecheck with TS2593 and a confusing @types/jest hint. I checked: with it added, such a spec type-checks and the app stays green.

},
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.spec.tsx", "src/**/*.test.tsx", "dist"]
"exclude": ["dist"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small accuracy note on the summary and the commit message: pr-check.yml never type-checks demo or ai-studio (its header comment says so), so CI was not the thing staying green. The guard this restores is the pre-commit tsc --noEmit from lint-staged and pnpm check. Worth rewording before the squash so git blame tells the right story.

}
2 changes: 1 addition & 1 deletion apps/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"verbatimModuleSyntax": true,
"types": ["node", "vite/client", "vite-plugin-svgr/client"]
},
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.spec.tsx", "src/**/*.test.tsx", "dist"]
"exclude": ["dist"]
}
Loading