CORE-1996: Setup Jest configuration for CSS imports#113
Merged
RoyEJohnson merged 1 commit intomainfrom May 6, 2026
Merged
Conversation
- 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>
There was a problem hiding this comment.
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-proxyas a devDependency to mock CSS imports in Jest. - Updated
jest.config.jswith amoduleNameMapperrule 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.
bethshook
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
identity-obj-proxyas a devDependency for mocking CSS imports in testsmoduleNameMapperto handle CSS files with identity-obj-proxyRelated Issues
Testing
yarn testNotes
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