Test: adds 'mocha' and 'chai' as types for tsconfig#22889
Conversation
|
Claude finished @iOvergaard's task in 1m 49s —— View job PR ReviewTarget: Adds Suggestions
Approved with Suggestions for improvementGood to go, but please carefully consider the importance of the suggestions. |
There was a problem hiding this comment.
Pull request overview
Adds explicit mocha and chai type entries to the Backoffice Client TypeScript configuration so that npx tsc works out of the box in src/Umbraco.Web.UI.Client.
Changes:
- Add
types: ['mocha', 'chai']to the tsconfig generator (devops/tsconfig/index.js). - Regenerate
tsconfig.jsonwith the newtypesentry.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Client/devops/tsconfig/index.js | Adds mocha and chai to the types compiler option in the generator. |
| src/Umbraco.Web.UI.Client/tsconfig.json | Regenerated config reflecting the added types array. |
|
@claude can you check to see why the default |
ReviewThis is a clean, minimal fix that makes One thing worth notingWhen you set Why this was neededThis is consistent with the
|
fix(test): adds 'mocha' and 'chai' as types for tsconfig
Description
This adds 'mocha' and 'chai' as explicit types for the Backoffice Client project in the generated tsconfig.json.
For some reason, the types have changed, and you must explicitly add these. I discovered this fact when I tried to run a base
npx tscin thesrc/Umbraco.Web.UI.Clientfolder. It didn't work right out of the box. It is a useful command to run if you want to ensure that the project builds correctly.