Skip to content

CORE-1996: Setup Jest configuration for CSS imports#113

Merged
RoyEJohnson merged 1 commit intomainfrom
core-1996-jest-css-config
May 6, 2026
Merged

CORE-1996: Setup Jest configuration for CSS imports#113
RoyEJohnson merged 1 commit intomainfrom
core-1996-jest-css-config

Conversation

@OpenStaxClaude
Copy link
Copy Markdown
Contributor

Summary

This PR sets up Jest configuration to handle CSS imports, preparing the test environment for the migration from styled-components to plain CSS.

Changes

  • Added identity-obj-proxy as a devDependency for mocking CSS imports in tests
  • Configured Jest moduleNameMapper to handle CSS files with identity-obj-proxy
  • Verified that all existing tests still run successfully

Related Issues

Testing

  • Ran full test suite: yarn test
  • All tests pass (1 pre-existing snapshot failure unrelated to this change)

Notes

This is part of Phase 1 of the styled-components to plain CSS migration. The next step will be updating theme files to remove styled-components imports.

🤖 Generated with Claude Code

- Add identity-obj-proxy as devDependency for mocking CSS imports
- Configure Jest moduleNameMapper to handle CSS files
- This prepares the test environment for the migration from styled-components to plain CSS

Related to CORE-1996

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown

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 prepares the Jest test environment for the upcoming migration away from styled-components by adding support for importing .css files during tests.

Changes:

  • Added identity-obj-proxy as a devDependency to mock CSS imports in Jest.
  • Updated jest.config.js with a moduleNameMapper rule for *.css.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
yarn.lock Locks the newly added identity-obj-proxy dependency and its transitive dependencies.
package.json Adds identity-obj-proxy to devDependencies for Jest CSS import mocking.
jest.config.js Adds moduleNameMapper to map .css imports to identity-obj-proxy.

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

@RoyEJohnson RoyEJohnson marked this pull request as ready for review May 6, 2026 16:00
@RoyEJohnson RoyEJohnson requested a review from bethshook May 6, 2026 16:01
@RoyEJohnson RoyEJohnson merged commit 2a87e19 into main May 6, 2026
7 checks passed
@RoyEJohnson RoyEJohnson deleted the core-1996-jest-css-config branch May 6, 2026 22:52
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.

4 participants