admin管理员组文章数量:1122846
Playwright With Typescript is used in dependency project (Core, App1 etc) and My test project using the dependency project. It is working fine when do NPM install as per the test project package.json ( which contains dependencies as "core":"1.0.0", "app1": "1.0.0")
Working:
In Core Project, npm build --> npm pack ........
In Test project, npm install
All working fine for above approach.
For Dev environment, testers need to make chaange to Pages and tests at same time so we tried to link projects locally so I dont need to pack and install everytime. For Dev Environment - Test project package.json has both core and app1 dependency as file:../Core/packages/core, file:../Core/packages/app1 In Core project, npm build --> npm link ........ In Test project, npm link core app1
When I do npm link, I'm not getting the playwright recognized in test project from core/dependency project. If I install playwright again (same version) in Test project, Im getting "Playwright required second time error" error.
Core -package.json -packages/core --src ---pages --package.json -packages/app1 --src ---pages --package.json
Test -package.json -tests/e2e --spec-app1.ts -testdata -env -playwright.config.ts
本文标签:
版权声明:本文标题:npm install - Playwright - When I do npm link, I'm not getting the playwright recognized in test project from coredepend 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307446a1933315.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论