Skip to content

Commit 2af9d6f

Browse files
justin808claude
andcommitted
Fix ESLint violations in bundlerUtils test
Add eslint-disable comments for: - max-classes-per-file: Multiple mock classes needed for testing - global-require: require() calls needed inside tests for proper mock order 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2bdc624 commit 2af9d6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/__tests__/webpack/bundlerUtils.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
/* eslint-disable max-classes-per-file */
2+
/* eslint-disable global-require */
13
/**
24
* Unit tests for bundlerUtils.js
35
* Tests bundler auto-detection and helper functions
46
*
57
* Note: These tests verify the bundler selection logic without actually
68
* loading Rspack (which requires Node.js globals not available in jsdom).
9+
* We use require() inside tests to ensure proper mocking order.
710
*/
811

912
// Mock the bundler packages to avoid loading them

0 commit comments

Comments
 (0)