Skip to content

Commit 0ac805e

Browse files
committed
remove babel for jest
We can use --experimental-vm-modules.
1 parent 813dd31 commit 0ac805e

7 files changed

Lines changed: 76 additions & 1611 deletions

File tree

.github/workflows/assets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- name: Install Dependencies
4040
run: mix deps.get --only dev
4141

42-
- name: Set up Node.js 20.x
42+
- name: Set up Node.js 24.x
4343
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4444
with:
45-
node-version: 20.x
45+
node-version: 24.x
4646

4747
- name: Restore npm cache
4848
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ jobs:
128128
restore-keys: |
129129
deps-${{ runner.os }}-npm
130130
131-
- name: Set up Node.js 20.x
131+
- name: Set up Node.js 24.x
132132
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
133133
with:
134-
node-version: 20.x
134+
node-version: 24.x
135135

136136
- name: Restore npm cache
137137
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0

assets/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

babel.config.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ module.exports = {
2424

2525
// The regexp pattern or array of patterns that Jest uses to detect test files
2626
testRegex: "/assets/test/.*_test\\.js$",
27+
28+
// The assets tree is native ESM. Disable Jest's default JS transform.
29+
transform: {},
2730
}

0 commit comments

Comments
 (0)