We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e53b0d commit b79f097Copy full SHA for b79f097
test/main.test.js
@@ -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