Files
pinme/test/login-tracking-source.test.mjs
T
junchi.zhang ce345f46e4 test: add CI-backed verification suite and harden create flow
- add Vitest, coverage, CLI, package, and mutation test commands
- add GitHub Actions verify, mutation, and audit workflows
- document testing policy and contributor commands
- replace curl template download with streamed retryable axios helper
- improve background install exit-code handling and tracker error reasons
2026-06-22 18:03:41 +08:00

10 lines
330 B
JavaScript

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { test } from "vitest";
const loginSource = readFileSync(new URL("../bin/login.ts", import.meta.url), "utf8");
test("pinme login tracking sends login method through source", () => {
assert.match(loginSource, /source:\s*['"]cli['"]/);
});