Skip to content

Commit 431a909

Browse files
Fix Jest configuration for ES modules
- Rename jest.config.js to jest.config.cjs for ES module compatibility - Update package.json test scripts to explicitly reference jest.config.cjs - All tests now pass successfully (5/5 tests passing) - Resolves ES module scope issues with Jest configuration Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 74c954c commit 431a909

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
File renamed without changes.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"lint:fix": "eslint src/**/*.ts --fix",
1313
"format": "prettier --write \"src/**/*.ts\" \"examples/**/*.ts\"",
1414
"format:check": "prettier --check \"src/**/*.ts\" \"examples/**/*.ts\"",
15-
"test": "jest",
16-
"test:watch": "jest --watch",
17-
"test:coverage": "jest --coverage",
15+
"test": "jest --config jest.config.cjs",
16+
"test:watch": "jest --config jest.config.cjs --watch",
17+
"test:coverage": "jest --config jest.config.cjs --coverage",
1818
"dev": "tsc --watch",
1919
"clean": "rm -rf dist",
2020
"prepublishOnly": "npm run clean && npm run build && npm test"

0 commit comments

Comments
 (0)