Commit 2571196
fix: convert Jest configs to ES module syntax
Convert jest.config.ts and swcjest.config.ts from CommonJS to ES module
syntax to fix 'module is not defined in ES module scope' error.
The issue occurred because package.json has "type": "module" which makes
Node.js treat .ts files as ES modules, but Jest configs were using
module.exports (CommonJS syntax).
Co-authored-by: Ivan Galiatin <trurl-master@users.noreply.github.com>1 parent a33423f commit 2571196
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments