Skip to content

Commit 03aee87

Browse files
committed
Add assertion to smoke test
1 parent 3b2fadb commit 03aee87

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/smoke-tests.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const exec = util.promisify(originalExec);
66
beforeAll(async () => {
77
await exec('pnpm build', { cwd: `${__dirname}/..` });
88
await exec('pnpm install', { cwd: __dirname });
9-
}, 10000);
9+
}, 20000);
1010

1111
it.each(['cjs-import', 'cjs-require', 'esm'])(
1212
'%s',
@@ -15,7 +15,9 @@ it.each(['cjs-import', 'cjs-require', 'esm'])(
1515
await exec(`tsc -p ${project}`, { cwd: __dirname }).catch((err) =>
1616
Promise.reject(err.stdout),
1717
);
18-
await exec(`node ${project}/dist/smoke-test.js`, { cwd: __dirname });
18+
await expect(
19+
exec(`node ${project}/dist/smoke-test.js`, { cwd: __dirname }),
20+
).resolves.toBeDefined();
1921
},
2022
10000,
2123
);

0 commit comments

Comments
 (0)