node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

21
server/node_modules/plop/tests/action-failure.spec.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
import { resolve, dirname } from "node:path";
import { waitFor } from "cli-testing-library";
import { renderPlop } from "./render.js";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
test("should exit with code 1 when failed actions", async () => {
const { findByText, userEvent } = await renderPlop([], {
cwd: resolve(__dirname, "./examples/action-failure"),
});
expect(await findByText("What is your name?")).toBeInTheConsole();
await userEvent.keyboard("Joe");
expect(await findByText("Joe")).toBeInTheConsole();
await userEvent.keyboard("[Enter]");
const actionOutput = await findByText("Action failed");
await waitFor(() =>
expect(actionOutput.hasExit()).toStrictEqual({ exitCode: 1 }),
);
});