## 🧪 ESM Tests

ESM-based tests (files like `*.test-esm.ts`) are handled separately from the main Jest configuration.

### 📌 Why are ESM tests excluded from the default config?

The main `jest.config.json` is configured for CommonJS and TypeScript.
To avoid conflicts and support native ESM features, ESM tests are excluded using:

```json
"testPathIgnorePatterns": ["\\.test-esm\\.tsx?$"]
```

These tests are executed using a dedicated config: `jest.config.esm.json`.

---

### 🚀 Running ESM Tests

You can run ESM tests using the following npm scripts:

```bash
npm run test-esm             # Run ESM tests only
npm run test-esm-coverage    # Run ESM tests with coverage
```
