From 69ec774611474255ba618212f385ce5ca002c9b5 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Tue, 16 Apr 2024 16:30:52 +0800 Subject: [PATCH] test(#111): add a test case --- test/cli.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/cli.test.ts diff --git a/test/cli.test.ts b/test/cli.test.ts new file mode 100644 index 0000000..79c60dc --- /dev/null +++ b/test/cli.test.ts @@ -0,0 +1,11 @@ +import path from 'node:path' +import { expect, it } from 'vitest' +import { execa } from 'execa' + +it('taze cli should just works', async () => { + const binPath = path.resolve(__dirname, '../bin/taze.mjs') + + const proc = await execa(process.execPath, [binPath], { stdio: 'pipe' }) + + expect(proc.stderr).toBe('') +})