Skip to content

Commit

Permalink
Merge pull request #700 from immobiliare:fix_intergration_test
Browse files Browse the repository at this point in the history
test: fix integration tests
  • Loading branch information
dnlup authored Mar 6, 2024
2 parents f315c28 + b6fde20 commit 58bbd3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 58bbd3b

Please sign in to comment.