Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy authored Nov 4, 2024
1 parent e2745ce commit 5fc5d2e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source/development/add-ons/test-add-ons-18.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This guide assumes that you've used {term}`Cookieplone` to create your add-on bo
Volto uses {term}`Jest` for unit tests.
You can create unit tests for testing your add-on.

Run the following command:
Run the following command.

```shell
make test
Expand All @@ -25,7 +25,7 @@ make test
## Override Jest configuration

In {term}`CI` or for testing add-ons, it's useful to modify Jest's {file}`package.json` configuration file.
You can use the boilerplate provided {file}`jest.config.js` file.
You can use the file {file}`jest.config.js` provided by the boilerplate.
The test command will load it and apply it.

```{warning}
Expand All @@ -35,27 +35,27 @@ Do not modify the existing keys in there if you don't know what you are doing, s
Both configurations are merged in a way that the keys of the configuration provided override the initial {file}`package.json` configuration, either in Volto or in your projects.

```{note}
For more background on testing add-ons in Volto 18, see {doc}`../../contributing/testing` since the developer experience has been unified for both add-ons and Volto core.
For more background on testing add-ons in Volto 18, see {doc}`../../contributing/testing`, since the developer experience has been unified for both add-ons and Volto core.
```

### Acceptance tests

Use {term}`Cypress` to run acceptance tests.

To start the backend server, run the following command.
This will start a docker container with a vanilla Plone backend.
This will start a Docker container with a vanilla Plone backend.

```shell
make acceptance-backend-start
```

To start the frontend acceptance server (in development mode), run the following command.
To start the frontend acceptance server in development mode, run the following command.

```shell
make acceptance-frontend-dev-start
```

You run the frontend in development mode, so you can develop while writing tests.
You can run the frontend in development mode, so you can develop while writing tests.
Run the following command to run Cypress tests afterward.

```shell
Expand Down

0 comments on commit 5fc5d2e

Please sign in to comment.