Skip to content

Commit

Permalink
test: fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Mar 6, 2024
1 parent 33376b8 commit b6fde20
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 b6fde20

Please sign in to comment.