Skip to content

Commit

Permalink
add main test
Browse files Browse the repository at this point in the history
  • Loading branch information
null committed Dec 13, 2023
1 parent 3e53b0d commit b79f097
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/main.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import test from "node:test"
import assert from "node:assert/strict";
import { $ } from "execa";
import { fileURLToPath } from "node:url";

test("main.js --help", async () => {
const mainPath = fileURLToPath(new URL("../dist/main.js", import.meta.url))
await $({ stdio: "inherit" })`${process.execPath} ${mainPath} --help`
})

0 comments on commit b79f097

Please sign in to comment.