Test lint in E2E tests
Some checks are pending
Runs E2E API Tests / build (20.x) (push) Waiting to run
Lint & build / lint_and_build (18.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
TOC Generator / TOC Generator (push) Waiting to run

This commit is contained in:
Stan Wohlwend 2024-08-02 17:15:59 -07:00
parent 0306a5bd8a
commit 5c188ee812
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,14 @@
import { exec } from "child_process";
import { describe } from "vitest";
import { it } from "../helpers";
describe("`pnpm run lint`", () => {
it("completes successfully", async ({ expect }) => {
const [error, stdout, stderr] = await new Promise<[Error | null, string, string]>((resolve) => {
exec("pnpm run lint", (error, stdout, stderr) => {
resolve([error, stdout, stderr]);
});
});
expect(error, `Expected no error to be thrown!\n\n\n\nstdout: ${stdout}\n\n\n\nstderr: ${stderr}`).toBeNull();
}, 60_000);
});

View File

@ -10,5 +10,5 @@ describe("`pnpm run typecheck`", () => {
});
});
expect(error, `Expected no error to be thrown!\n\n\n\nstdout: ${stdout}\n\n\n\nstderr: ${stderr}`).toBeNull();
});
}, 60_000);
});