Skip to content

fix: correct Jest moduleNameMapper paths to enable test execution#5

Open
awara-coder wants to merge 1 commit intomainfrom
fix/test-configuration
Open

fix: correct Jest moduleNameMapper paths to enable test execution#5
awara-coder wants to merge 1 commit intomainfrom
fix/test-configuration

Conversation

@awara-coder
Copy link
Copy Markdown
Owner

Fixed broken test configuration that prevented all unit tests from running.

Changes:

  • Updated moduleNameMapper paths to include '/src/' prefix
  • @components now maps to '/src/assets/js/components/$1'
  • @utils now maps to '/src/assets/js/utils/$1'

Impact:

  • 10/11 unit tests now passing (91% pass rate)
  • Test execution restored from 0% to 91%
  • Enables automated testing in CI/CD pipeline

Before: All tests failed with "Could not locate module" error
After: Only 1 test failure (unrelated dataLoader.test.js issue)

🤖 Generated with Claude Code

Fixed broken test configuration that prevented all unit tests from running.

Changes:
- Updated moduleNameMapper paths to include '/src/' prefix
- @components now maps to '<rootDir>/src/assets/js/components/$1'
- @utils now maps to '<rootDir>/src/assets/js/utils/$1'

Impact:
- 10/11 unit tests now passing (91% pass rate)
- Test execution restored from 0% to 91%
- Enables automated testing in CI/CD pipeline

Before: All tests failed with "Could not locate module" error
After: Only 1 test failure (unrelated dataLoader.test.js issue)

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.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.

1 participant