Skip to content

Commit

Permalink
feat: add an extra command for opening & running the cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boazpoolman committed Jan 20, 2025
1 parent b17c663 commit f441643
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,24 @@ To better understand how and why this repository has been setup, please read the
8. `yarn test:cypress`
- Runs the cypress tests. Contains e2e tests.
- Used in the test step of the pipeline.
9. `yarn test:cypress:open`
- Opens the cypress GUI.

### Playground commands

9. `yarn playground:install`
10. `yarn playground:install`
- Installs the plugin into the playground using `yalc-add-link`.
- Installs all other dependencies of the playground.
10. `yarn playground:yalc-add`
11. `yarn playground:yalc-add`
- Installs a production-like version of the plugin, into the playground.
11. `yarn playground:yalc-add-link`
12. `yarn playground:yalc-add-link`
- Installs a development build of the plugin, into the playground.
12. `yarn playground:build`
13. `yarn playground:build`
- The native Strapi build command, ran in the playground.
- [Documentation can be found here](https://docs.strapi.io/dev-docs/cli).
13. `yarn playground:develop`
14. `yarn playground:develop`
- The native Strapi develop command, ran in the playground.
- [Documentation can be found here](https://docs.strapi.io/dev-docs/cli).
14. `yarn playground:start`
15. `yarn playground:start`
- The native Strapi start command, ran in the playground.
- [Documentation can be found here](https://docs.strapi.io/dev-docs/cli).
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"test:ts:front": "tsc -p admin/tsconfig.json",
"test:ts:back": "tsc -p server/tsconfig.json",
"test:jest": "ENV_PATH=./playground/.env jest --verbose --runInBand --forceExit",
"test:cypress": "cypress open",
"test:cypress": "cypress run",
"test:cypress:open": "cypress open",
"playground:install": "yarn playground:yalc-add-link && cd playground && yarn install",
"playground:yalc-add": "cd playground && yalc add strapi-plugin-boilerplate",
"playground:yalc-add-link": "cd playground && yalc add --link strapi-plugin-boilerplate",
Expand Down

0 comments on commit f441643

Please sign in to comment.