You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin uses `wp-env` setup to for local environment.
63
+
64
+
-`wp-env start` to start the containers
65
+
-`wp-env stop` to stop the containers
66
+
67
+
More details on how to access local environment can be found [here](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/#quick-tldr-instructions).
55
68
56
69
## Linting and formatting
57
70
58
71
PHP
59
72
60
73
-`composer lint`
61
-
- To auto fix the linting errors `composer lint:fix`
62
-
63
-
💡 [VSCode extension](https://marketplace.visualstudio.com/items?itemName=shevaua.phpcs) to auto format PHP files based on `phpcs.xml.dist` configuration
74
+
-`composer lint:fix` to auto fix PHP linting errors.
64
75
65
76
JS
66
77
67
78
-`yarn lint:js`
68
-
69
-
💡 [VSCode extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) to auto format JS / TS files based on `.prettierrc.js` configuration
79
+
-`yarn lint:js:fix` to auto fix JS linting errors.
70
80
71
81
CSS
72
82
73
83
-`yarn lint:css`
74
-
-To auto fix the css linting errors `yarn lint:css:fix`
84
+
-`yarn lint:css:fix` to auto fix CSS linting errors.
75
85
76
86
## Testing
77
87
@@ -85,10 +95,10 @@ CSS
85
95
86
96
### JS
87
97
88
-
- Run `yarn test:js`which will run all jest and React Testing Library tests
98
+
- Run `yarn test:js`to run all Jest and React Testing Library tests
89
99
90
100
### E2E
91
101
92
102
The E2E tests depends on `wp-env` setup. Ensure you run `wp-env start` before running the tests.
93
103
94
-
- Run `yarn test:e2e`which will run all Playwright e2e tests.
104
+
- Run `yarn test:e2e`to run all Playwright e2e tests.
0 commit comments