codeceptjs / CodeceptJS

Supercharged End 2 End Testing Framework for NodeJS
http://codecept.io
MIT License
4.07k stars 720 forks source link

fix: Puppeteer helper doc broken link #4369

Closed yoannfleurydev closed 3 weeks ago

yoannfleurydev commented 1 month ago

Motivation/Description of the PR

Broken link in puppeteer helper documentation

Applicable helpers:

Applicable plugins:

Type of change

Checklist:

yoannfleurydev commented 4 weeks ago

@kobenguyent there is an issue while running npm run docs.

image

I installed dependencies (using --force) with Node.js 18 and Node.js 20 because it was not installing dependencies (https://github.com/codeceptjs/CodeceptJS/issues/4371)

kobenguyent commented 4 weeks ago

Could you try this npm run def && npm run docs

yoannfleurydev commented 4 weeks ago

npm run def is giving me an error.

[#35 NPX] › ℹ  npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha
Building @codecepjs/detox helper docs
[#36 REPLACEINFILE] › ℹ  node_modules/@codeceptjs/detox-helper/Detox.js
[#36 REPLACEINFILE] › ✖  Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'"  in 0 ms
[#36 REPLACEINFILE] › ⚠  warning   Execution stopped

And then running npm run docs is kind of giving me the same one.

> codeceptjs@3.6.2 docs
> ./runok.js docs

Writing documentation for AI
[#1 COPY] › ℹ  lib/helper/AI.js => docs/build/AI.js
[#1 COPY] › ✔  Finished  in 1 ms
[#2 REPLACEINFILE] › ℹ  docs/build/AI.js
[#2 REPLACEINFILE] › ✔  Finished  in 0 ms
[#3 NPX] › ℹ  npx documentation build docs/build/AI.js -o docs/helpers/AI.md -f md --shallow --markdown-toc=false --sort-order=alpha
[#4 NPX] › ℹ  npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha
Building @codecepjs/detox helper docs
[#5 REPLACEINFILE] › ℹ  node_modules/@codeceptjs/detox-helper/Detox.js
[#5 REPLACEINFILE] › ✖  Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'"  in 0 ms
[#5 REPLACEINFILE] › ⚠  warning   Execution stopped
kobenguyent commented 4 weeks ago

npm run def is giving me an error.

[#35 NPX] › ℹ  npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha
Building @codecepjs/detox helper docs
[#36 REPLACEINFILE] › ℹ  node_modules/@codeceptjs/detox-helper/Detox.js
[#36 REPLACEINFILE] › ✖  Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'"  in 0 ms
[#36 REPLACEINFILE] › ⚠  warning   Execution stopped

And then running npm run docs is kind of giving me the same one.

> codeceptjs@3.6.2 docs
> ./runok.js docs

Writing documentation for AI
[#1 COPY] › ℹ  lib/helper/AI.js => docs/build/AI.js
[#1 COPY] › ✔  Finished  in 1 ms
[#2 REPLACEINFILE] › ℹ  docs/build/AI.js
[#2 REPLACEINFILE] › ✔  Finished  in 0 ms
[#3 NPX] › ℹ  npx documentation build docs/build/AI.js -o docs/helpers/AI.md -f md --shallow --markdown-toc=false --sort-order=alpha
[#4 NPX] › ℹ  npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha
Building @codecepjs/detox helper docs
[#5 REPLACEINFILE] › ℹ  node_modules/@codeceptjs/detox-helper/Detox.js
[#5 REPLACEINFILE] › ✖  Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'"  in 0 ms
[#5 REPLACEINFILE] › ⚠  warning   Execution stopped

well, I think you haven't run npm i -f

yoannfleurydev commented 4 weeks ago

Thanks a lot, I removed my node_modules and did again install force, and it worked.

The PR is updated with your feedbacks. Thanks a lot for your patience and answering my dumb questions 😄

kobenguyent commented 4 weeks ago

No worries @yoannfleurydev 😀 I bumped into the same thing when I first touched the codebase.