mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Test lint in E2E tests
This commit is contained in:
parent
0306a5bd8a
commit
5c188ee812
14
apps/e2e/tests/general/lint.test.ts
Normal file
14
apps/e2e/tests/general/lint.test.ts
Normal 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);
|
||||
});
|
||||
@ -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);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user