Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Migrated test transpilation from ts-jest to SWC to align with the repo’s ESNext setup and speed up builds.

  • Tooling: Replaced ts-jest preset with @swc/jest transform and added shared .swcrc tuned for TS/React with ESM defaults and Jest CJS output.
  • Dependencies: Added @swc/core/@swc/jest, removed ts-jest, refreshed lockfile.

Example transform configuration:

// jest.config.js
module.exports = {
  testEnvironment: 'jsdom',
  transform: {
    '^.+\\.(t|j)sx?$': [
      '@swc/jest',
      {
        module: { type: 'commonjs' }
      }
    ]
  }
};
Original prompt

Migrate to SWC


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 20, 2026 03:03
Co-authored-by: hortison <160366376+hortison@users.noreply.github.com>
Co-authored-by: hortison <160366376+hortison@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate project to SWC Migrate Jest tooling to SWC Jan 20, 2026
Copilot AI requested a review from hortison January 20, 2026 03:08
@hortison hortison marked this pull request as ready for review January 20, 2026 03:52
Copy link
Member

@leecalcote leecalcote left a comment

Choose a reason for hiding this comment

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

Builds should speed up just a little.

This brings the ecosystem's build tooling in alignment.

Copy link
Contributor

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 pull request migrates the Jest test transpilation infrastructure from ts-jest to SWC, aligning with the repository's ESNext build setup and improving build performance. The migration replaces ts-jest with @swc/jest and introduces a shared .swcrc configuration file.

Changes:

  • Replaced ts-jest with @swc/core and @swc/jest in dependencies
  • Updated jest.config.js to use @swc/jest transformer with CommonJS module output
  • Added .swcrc configuration file with TypeScript/React support and ESM defaults

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
package.json Replaced ts-jest with @swc/core (^1.10.12) and @swc/jest (^0.2.37)
package-lock.json Updated dependency tree with SWC packages and removed ts-jest related dependencies (bs-logger, handlebars, make-error, etc.)
jest.config.js Replaced ts-jest preset with @swc/jest transform configuration targeting CommonJS modules
.swcrc Added SWC configuration with ES2021 target, TypeScript/React support, and ES6 module type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Lee Calcote <leecalcote@gmail.com>
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