Intellisense not working for Playwright, REST #3553
-
I write autotests on the Codeceptjs framework in TypeScript. After adding additional modules to the project, as well as after updating the repository with the command:
Intellisense is starting to work for me and I'm starting to see methods that I can use. For example, I see methods of such modules as: JSONResponse, DbHelper, ChaiWrapper.
package.json
Reinstalling modules doesn't help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Did you run npx codeceptjs def once you added Playwright and REST? |
Beta Was this translation helpful? Give feedback.
-
Yes |
Beta Was this translation helpful? Give feedback.
-
I found the solution. In steps.d.ts you need to add the transfer of Methods to WithTranslation Instead of: We are adding |
Beta Was this translation helpful? Give feedback.
I found the solution. In steps.d.ts you need to add the transfer of Methods to WithTranslation
Instead of:
interface I extends ReturnType<steps_file>, WithTranslation<ChaiWrapper>, WithTranslation<JSONResponse>, WithTranslation<DbHelper> {}
We are adding
interface I extends ReturnType<steps_file>, WithTranslation<Methods> {}