From 75fa2594721c2a80329b58846058b74b64e1bd88 Mon Sep 17 00:00:00 2001 From: Ashley Engelund Date: Mon, 28 Nov 2022 08:46:10 -0800 Subject: [PATCH] simplify pnpm cypress command example Co-authored-by: Sidharth Vinod --- packages/mermaid/src/docs/community/development.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/docs/community/development.md b/packages/mermaid/src/docs/community/development.md index 80ed5ecb9..7ecf7918c 100644 --- a/packages/mermaid/src/docs/community/development.md +++ b/packages/mermaid/src/docs/community/development.md @@ -145,7 +145,7 @@ This ensures that the rendering of that feature in the e2e will be reviewed in t To start working with the e2e tests: 1. Run `pnpm run dev` to start the dev server (or use the `pnpm dev` script) -2. Start **Cypress** by running `pnpm exec cypress open` in the **mermaid** folder (or use the `pnpm cypress:open` script). +2. Start **Cypress** by running `pnpm cypress:open`. The rendering tests are very straightforward to create. There is a function `imgSnapshotTest`, which takes a diagram in text form and the mermaid options, and it renders that diagram in Cypress.