@@ -15,47 +15,45 @@ their designated Docker containers before pushing changes to the repository.
15
15
16
16
### Linters (ESlint, Markdownlint, Stylelint)
17
17
18
- They can be run individually:
18
+ ** On host: **
19
19
20
- 1 . (optional) [ Open] [ gh-gg-node-shell ] ` node_shell ` Docker
21
- container
22
- 2 . Run linters:
20
+ [ Open] [ gh-gg-node-shell ] ` node_shell ` Docker container:
23
21
24
- ``` bash
25
- npm run < eslint| markdownlint| stylelint>
26
- ```
22
+ ``` bash
23
+ docker compose run --rm node_shell
24
+ ```
25
+
26
+ ** Within ` node_shell ` :**
27
27
28
- or all together:
28
+ Run linters either all together:
29
+
30
+ ``` bash
31
+ npm run lint
32
+ ```
29
33
30
- 1. (optional) [Open][gh-gg-node-shell] ` node_shell` Docker
31
- container
32
- 2. Run linters:
34
+ or run linters individually:
33
35
34
- ` ` ` bash
35
- npm run lint
36
- ` ` `
36
+ ``` bash
37
+ npm run < eslint | markdownlint | stylelint >
38
+ ```
37
39
38
40
### Jest
39
41
40
- Jest tests can be run using the following commands:
42
+ ** On host: **
41
43
42
- 1. (optional) [Open][gh-gg-node-shell] ` node_shell` Docker
43
- container
44
- 2. Run tests:
44
+ [ Open] [ gh-gg-node-shell ] ` node_shell ` Docker container:
45
45
46
- ` ` ` bash
47
- npm run test:jest
48
- ` ` `
46
+ ``` bash
47
+ docker compose run --rm node_shell
48
+ ```
49
49
50
- or all together with linters:
50
+ ** Within ` node_shell ` : **
51
51
52
- 1. (optional) [Open](/README.md#node_shell-docker-container) ` node_shell` Docker
53
- container
54
- 2. Run tests:
52
+ Run Jest tests:
55
53
56
- ` ` ` bash
57
- npm test
58
- ` ` `
54
+ ``` bash
55
+ npm run test:jest
56
+ ```
59
57
60
58
### Playwright
61
59
@@ -77,12 +75,21 @@ cp .env.playwright.dist .env.playwright
77
75
78
76
Playwright tests can be run using the following commands:
79
77
80
- 1. [Open][gh-gg-playwright] ` playwright` Docker container
81
- 2. Run tests:
78
+ ** On host:**
79
+
80
+ [ Open] [ gh-gg-playwright ] ` playwright ` Docker container:
81
+
82
+ ``` bash
83
+ docker compose run --rm playwright
84
+ ```
85
+
86
+ ** Within ` node_shell ` :**
87
+
88
+ Run tests:
82
89
83
- ` ` ` bash
84
- npm run test:playwright-ct:< all| all-with-update>
85
- ` ` `
90
+ ``` bash
91
+ npm run test:playwright-ct:< all| all-with-update>
92
+ ```
86
93
87
94
You can also run specific tests by passing a path to the test files:
88
95
@@ -98,14 +105,14 @@ npm run test:playwright-ct:<all|all-with-update> -- <cli_argument>
98
105
99
106
#### Opening Test Report
100
107
101
- After running Playwright tests, test report can be opened on the host system
108
+ After running Playwright tests, test report can be opened ** on the host system**
102
109
by using the following command:
103
110
104
111
``` bash
105
112
npm run test:playwright-ct:show-report
106
113
```
107
114
108
- Test report cannot be server Docker container yet.
115
+ Test report cannot be server from Docker container yet.
109
116
110
117
[ gh-gg-node-shell ] : /docs/contribute/general-guidelines#node-shell
111
118
[ gh-gg-playwright ] : /docs/contribute/general-guidelines#playwright
0 commit comments