mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 21:39:40 +02:00
fix pnpm dev command example
This commit is contained in:

parent
75fa259472
commit
a497909446
@@ -155,8 +155,8 @@ This ensures that the rendering of that feature in the e2e will be reviewed in t
|
|||||||
|
|
||||||
To start working with the e2e tests:
|
To start working with the e2e tests:
|
||||||
|
|
||||||
1. Run `pnpm run dev` to start the dev server (or use the `pnpm dev` script)
|
1. Run `pnpm dev` to start the dev server
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
@@ -144,7 +144,7 @@ This ensures that the rendering of that feature in the e2e will be reviewed in t
|
|||||||
|
|
||||||
To start working with the e2e tests:
|
To start working with the e2e tests:
|
||||||
|
|
||||||
1. Run `pnpm run dev` to start the dev server (or use the `pnpm dev` script)
|
1. Run `pnpm dev` to start the dev server
|
||||||
2. Start **Cypress** by running `pnpm cypress:open`.
|
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.
|
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.
|
||||||
|
Reference in New Issue
Block a user