Skip to content

Commit 7331a34

Browse files
committed
ci: upgrade to yarn 3.2.3, enable more tests
1 parent 31e1cee commit 7331a34

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

scripts/test-yarnpnp.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function modTime(file) {
1616
}
1717

1818
function reinstallYarnIfNeeded() {
19-
const yarnPath = path.join(rootDir, '.yarn', 'releases', 'yarn-3.2.2.cjs')
19+
const yarnPath = path.join(rootDir, '.yarn', 'releases', 'yarn-3.2.3.cjs')
2020

2121
if (fs.existsSync(yarnPath) && modTime(yarnPath) > Math.max(
2222
modTime(path.join(rootDir, 'package.json')),
@@ -31,10 +31,10 @@ function reinstallYarnIfNeeded() {
3131
fs.rmSync(path.join(rootDir, '.yarnrc.yml'), { recursive: true, force: true })
3232

3333
try {
34-
run('yarn set version 3.2.2')
34+
run('yarn set version 3.2.3')
3535
} catch {
3636
run('npm i -g yarn') // Install Yarn globally if it's not already installed
37-
run('yarn set version 3.2.2')
37+
run('yarn set version 3.2.3')
3838
}
3939

4040
run('yarn install')
@@ -59,16 +59,10 @@ function runTests() {
5959
run('node ../../npm/esbuild-wasm/bin/esbuild in.mjs --bundle --log-level=debug --platform=node --outfile=out-wasm.js')
6060
run('node out-wasm.js')
6161

62-
// Note: This is currently failing due to a bug in Yarn that generates invalid
63-
// file handles. I should update the Yarn version and then enable this test
64-
// when a new version of Yarn is released that fixes this bug. This test is
65-
// disabled for now.
66-
/*
67-
// Test the WebAssembly build when run through Yarn's file system shim
68-
esbuild.buildWasmLib(ESBUILD_BINARY_PATH)
69-
run('yarn node ../../npm/esbuild-wasm/bin/esbuild in.mjs --bundle --log-level=debug --platform=node --outfile=out-wasm-yarn.js')
70-
run('node out-wasm-yarn.js')
71-
*/
62+
// Test the WebAssembly build when run through Yarn's file system shim
63+
esbuild.buildWasmLib(ESBUILD_BINARY_PATH)
64+
run('yarn node ../../npm/esbuild-wasm/bin/esbuild in.mjs --bundle --log-level=debug --platform=node --outfile=out-wasm-yarn.js')
65+
run('node out-wasm-yarn.js')
7266
}
7367

7468
reinstallYarnIfNeeded()

0 commit comments

Comments
 (0)