Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR standardizes Jest configuration across multiple packages in the monorepo by migrating from CommonJS to TypeScript modules and consolidating configurations into dedicated files.
Changes:
- Converted all
jest.config.jsfiles tojest.config.tsusing ES module syntax with TypeScript type checking (satisfies Config) - Migrated inline Jest configurations from
package.jsonfiles to separatejest.config.tsfiles - Updated TypeScript build configurations to exclude Jest config files from compilation
- Removed the deprecated
errorOnDeprecatedoption from all Jest configurations
Reviewed changes
Copilot reviewed 40 out of 40 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/*/jest.config.ts | New TypeScript Jest configurations with export default and satisfies Config type checking |
| packages/*/jest.config.js | Removed old CommonJS Jest configuration files |
| packages/*/tsconfig.json | Added exclude and include patterns for Jest config files and build artifacts |
| packages/*/tsconfig.{esm,cjs,build}.json | Added jest.config.* to exclude patterns to prevent compilation of config files |
| packages/*/package.json | Removed inline Jest configuration blocks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e43d828 to
0e2605f
Compare
0e2605f to
c927342
Compare
Proposed changes (including videos or screenshots)
It normalizes the Jest configuration over the monorepo.
This pull request modernizes and standardizes Jest configuration across multiple packages by converting CommonJS Jest config files to TypeScript modules, removing deprecated or unnecessary Jest options, and updating TypeScript configuration files to exclude Jest config files from builds. These changes improve type safety, maintainability, and build hygiene.
Jest configuration modernization:
.js) to TypeScript (.ts) modules incss-in-js,emitter,layout, andlogopackages, usingexport defaultandsatisfies Configfor type safety. [1] [2] [3] [4]errorOnDeprecated: trueoption from Jest configs in several packages. [1] [2] [3] [4] [5] [6] [7]TypeScript build configuration improvements:
tsconfig.build.json,tsconfig.cjs.json, andtsconfig.esm.jsonfiles across multiple packages to exclude Jest config files (e.g.,jest.config.*) from builds, preventing them from being included in output. [1] [2] [3] [4] [5] [6] [7] [8] [9]General cleanup:
testMatchand other Jest options across packages for better maintainability. [1] [2] [3] [4] [5] [6] [7]Issue(s)
Further comments