Skip to content

Commit e10d482

Browse files
committed
Fix tests
1 parent 47cd756 commit e10d482

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ jobs:
311311
strategy:
312312
fail-fast: false
313313
matrix:
314-
os: [ubuntu-latest, macos-latest, windows-latest]
314+
os: [ubuntu-22.04, macos-latest, windows-latest]
315315
steps:
316316
- name: Check out current commit
317317
uses: actions/checkout@v4

test/bundler/bundler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Bundler tests', () => {
3030
rules: [
3131
{
3232
test: /\.node$/,
33-
loader: 'node-loader',
33+
loader: require.resolve('node-loader'),
3434
},
3535
],
3636
},

test/prepare.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function prepareTest(root) {
3535
rmSync(tmpDir, { recursive: true, force: true });
3636

3737
const pkg = readFileSync(join(root, 'package.json.template'), 'utf-8');
38-
const modified = pkg.replace(/{{path}}/, `file:${tarballRelative}`);
38+
const modified = pkg.replace(/"{{path}}"/, JSON.stringify(`file:${tarballRelative}`));
3939
writeFileSync(join(root, 'package.json'), modified);
4040

4141
console.log('Installing dependencies...');

0 commit comments

Comments
 (0)