Skip to content

Commit 7491dc7

Browse files
committed
docs(@nestjs/swagger): mention --clearCache flag
Add instruction on first using --clearCache flag and then reverting to manual deletion
1 parent 1677f7e commit 7491dc7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/openapi/cli-plugin.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ With this in place, import AST transformer within your `jest` configuration file
201201
#### Troubleshooting `jest` (e2e tests)
202202
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.
203203

204-
In order to clear the cache directory of `jest`, run the following commands:
204+
In order to clear the cache directory of `jest`, run the following command in your NestJS project folder:
205+
```bash
206+
$ 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:
205209
```bash
206210
# Find out jest cache directory (usually /tmp/jest_rs)
207211
# by running command below in your NestJS project root

0 commit comments

Comments
 (0)