Skip to content

Commit b79f097

Browse files
author
null
committed
add main test
1 parent 3e53b0d commit b79f097

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/main.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import test from "node:test"
2+
import assert from "node:assert/strict";
3+
import { $ } from "execa";
4+
import { fileURLToPath } from "node:url";
5+
6+
test("main.js --help", async () => {
7+
const mainPath = fileURLToPath(new URL("../dist/main.js", import.meta.url))
8+
await $({ stdio: "inherit" })`${process.execPath} ${mainPath} --help`
9+
})

0 commit comments

Comments
 (0)