From 8db4bdd9925f4d453271e8ee61204477265b09ef Mon Sep 17 00:00:00 2001 From: Ross Brandes Date: Thu, 17 Sep 2026 18:58:46 -0400 Subject: [PATCH 1/2] Bump our Actions versions --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9bab485..cf37ca3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,9 +20,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v7 with: node-version: ${{ matrix.node-version }} cache: 'npm' From 0c350d88ed2168ed9c76ed2eed5817107ab22643 Mon Sep 17 00:00:00 2001 From: Ross Brandes Date: Fri, 18 Sep 2026 16:55:00 -0400 Subject: [PATCH 2/2] Fix Node 20.19+ babel example Node 20.19+ auto-detects ambiguous .js files containing import/export syntax and loads them as native ESM, bypassing babel-core/register's CJS require hook entirely. That broke require() calls inside the babel example's test files. Declaring "type": "commonjs" opts this legacy Babel-6 fixture out of that auto-detection so babel-core/register keeps transforming these files as it always has. --- examples/babel/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/babel/package.json b/examples/babel/package.json index 263f9b0..c685706 100644 --- a/examples/babel/package.json +++ b/examples/babel/package.json @@ -1,6 +1,7 @@ { "name": "testdouble-babel-example", "private": true, + "type": "commonjs", "scripts": { "test": "mocha --timeout 20000 --require babel-core/register -R spec --recursive test/helper.js test/lib/" },