From b6fde2056526de164c4cd7a07d3edb387541e6b0 Mon Sep 17 00:00:00 2001 From: dnlup Date: Wed, 6 Mar 2024 11:44:28 +0100 Subject: [PATCH] test: fix integration tests --- test/integration.test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/integration.test.js b/test/integration.test.js index 943b8abf..9771fd26 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -47,13 +47,14 @@ tap.jobs = 3; tap.before(async () => { await clean(); - const { stdout: pack } = await run('npm pack'); - const source = join(root, pack.trim()); + const { stdout } = await run('npm pack'); + const pack = stdout.trim().split('\n').pop(); + const source = join(root, pack); const dest = join(__dirname, 'fixtures', 'pack.tgz'); await rename(source, dest); }); -tap.test('cjs', async (t) => { +tap.test('cjs', { only: true }, async (t) => { const cwd = join(__dirname, 'fixtures', 'cjs'); await install({ cwd }); const { error, stdout, stderr } = await run('node index.js', { cwd });