Rayrun
← Back to Discord Forum

vscode mono-repo

guillaumecamusposted in #help-playwright
Open in Discord
guillaumecamus
guillaumecamus

Hello, I have a mono-repo in which I have a package with the configuration and the playwright tests.

packages/
├── common
│   ├── package.json
│   ├── src
│   ├── tsconfig.json
│   └── vitest.config.ts
├── playwright-my-reporter
│   ├── package.json
│   ├── src
│   ├── tsconfig.json
│   └── vitest.config.ts
└── smoke-test
    ├── docs
    ├── package.json
    ├── playwright.config.ts
    ├── src
    └── vitest.config.ts

The vscode plugin doesn't list tests. I think it's looking for the configuration file at the root of the project. Is my analysis correct? And how can I tell it to work in the /packages/smoke-test path?

This thread is trying to answer question "Is the VSCode plugin looking for the configuration file at the root of the project and how can it be made to work in the '/packages/smoke-test' path?"

4 replies

it should also work for nested folders. If this does not work, please file an issue on GitHub with a reproduction repository. Happy to take a looko.

Are there any errors in your JS/TS? The vs code plugin is really sensitive if you have any errors in your project. When i write a lot of code without running for a while, easy to get some error somewhere and may take a while to find it, but once the code is good, some times i need to restart the Typescript TS Server as well, then i'll see all my tests.

guillaumecamus
guillaumecamus

No, I'm using Yarn PNP mode which is not supported by the extension

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].