Skip to content

test: Jest configuration normalized#1847

Merged
tassoevan merged 5 commits intomainfrom
test/jest-config-ts
Jan 26, 2026
Merged

test: Jest configuration normalized#1847
tassoevan merged 5 commits intomainfrom
test/jest-config-ts

Conversation

@tassoevan
Copy link
Member

@tassoevan tassoevan commented Jan 23, 2026

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:

  • Converted Jest config files from CommonJS (.js) to TypeScript (.ts) modules in css-in-js, emitter, layout, and logo packages, using export default and satisfies Config for type safety. [1] [2] [3] [4]
  • Removed the deprecated or unnecessary errorOnDeprecated: true option from Jest configs in several packages. [1] [2] [3] [4] [5] [6] [7]

TypeScript build configuration improvements:

  • Updated tsconfig.build.json, tsconfig.cjs.json, and tsconfig.esm.json files 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:

  • Ensured consistent use of testMatch and other Jest options across packages for better maintainability. [1] [2] [3] [4] [5] [6] [7]

Issue(s)

Further comments

@tassoevan tassoevan requested review from a team and Copilot January 23, 2026 22:04
@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

⚠️ No Changeset found

Latest commit: c927342

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.js files to jest.config.ts using ES module syntax with TypeScript type checking (satisfies Config)
  • Migrated inline Jest configurations from package.json files to separate jest.config.ts files
  • Updated TypeScript build configurations to exclude Jest config files from compilation
  • Removed the deprecated errorOnDeprecated option 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.

@tassoevan tassoevan force-pushed the test/jest-config-ts branch from e43d828 to 0e2605f Compare January 24, 2026 00:59
@tassoevan tassoevan marked this pull request as draft January 24, 2026 01:51
@tassoevan tassoevan force-pushed the test/jest-config-ts branch from 0e2605f to c927342 Compare January 24, 2026 02:10
@tassoevan tassoevan marked this pull request as ready for review January 24, 2026 02:26
@tassoevan tassoevan merged commit 197e407 into main Jan 26, 2026
6 checks passed
@tassoevan tassoevan deleted the test/jest-config-ts branch January 26, 2026 23:21
Anshumancanrock pushed a commit to Anshumancanrock/fuselage that referenced this pull request Jan 27, 2026
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.

3 participants