Skip to content

Commit 68a84db

Browse files
Update content/openapi/cli-plugin.md
1 parent 7491dc7 commit 68a84db

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

content/openapi/cli-plugin.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -199,23 +199,27 @@ With this in place, import AST transformer within your `jest` configuration file
199199
```
200200

201201
#### Troubleshooting `jest` (e2e tests)
202-
In any case that `jest` does not seem to pick up your configuration changes, it is quite possible that it has already **cached** the build result. In order for your changes _(`@nestjs/swagger/plugin` integration)_, to be taken into account, you need to clear its cache directory.
203202

204-
In order to clear the cache directory of `jest`, run the following command in your NestJS project folder:
205-
```bash
203+
In case `jest` does not seem to pick up your configuration changes, it's possible that Jest has already **cached** the build result. To apply the new configuration, you need to clear Jest's cache directory.
204+
205+
To clear the cache directory, run the following command in your NestJS project folder:
206+
207+
\```bash
206208
$ npx jest --clearCache
207-
```
208-
In any case the automatic cache clearance fails, you can still manually empty the cache folder with the following way:
209-
```bash
210-
# Find out jest cache directory (usually /tmp/jest_rs)
211-
# by running command below in your NestJS project root
209+
\```
210+
211+
In case the automatic cache clearance fails, you can still manually remove the cache folder with the following commands:
212+
213+
\```bash
214+
# Find jest cache directory (usually /tmp/jest_rs)
215+
# by running the following command in your NestJS project root
212216
$ npx jest --showConfig | grep cache
213217
# ex result:
214218
# "cache": true,
215219
# "cacheDirectory": "/tmp/jest_rs"
216220

217-
# Remove or empty the found Jest cache directory
221+
# Remove or empty the Jest cache directory
218222
$ rm -rf <cacheDirectory value>
219223
# ex:
220224
# rm -rf /tmp/jest_rs
221-
```
225+
\```

0 commit comments

Comments
 (0)