Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Extend tsconfig and babel configuration #7041

Closed
btvanhooser opened this issue Jun 10, 2021 · 4 comments
Closed

[Feature] Extend tsconfig and babel configuration #7041

btvanhooser opened this issue Jun 10, 2021 · 4 comments
Labels
feature-test-runner Playwright test specific issues P3-collecting-feedback

Comments

@btvanhooser
Copy link

I'm using @playwright/test with typescript in a project that already uses typescript, so I've made a 2nd tsconfig. I was previously using Jest which has ts-jest to handle the TS related configurations. Is there anything in the Playwright Test Runner where I can set that as well, or would I need to use ts-node or something of the like to be able to set a path other than the default "./tsconfig.json"?

@pavelfeldman
Copy link
Member

Playwright should respect your tsconfig, could you provide more details on what your expectations are and what happens instead?

@pavelfeldman pavelfeldman added triaging feature-test-runner Playwright test specific issues labels Jun 10, 2021
@btvanhooser
Copy link
Author

So in my project, I have a tsconfig.json and a tsconfig.e2e.json because I need different configurations for the e2e sub project, but when running playwright test runner it's unclear how to set the config path to point to the e2e config. I tried diving through the PlaywrightTestOptions class/interface and the CLI options and it wasn't clear how to set that.

I'm trying to migrate from the jest-playwright-preset pattern and there you can set the path via the jest config. I'm just trying to see if the same can be be done with this runner.

@mxschmitt
Copy link
Member

The playwright test-runner does so far not use your own tsconfig or babel configuration. I will keep it open and mark it as a feature-request so we can add support for it.

@mxschmitt mxschmitt changed the title [Question] how can you designate which tsconfig to use? [Feature] Extend tsconfig and babel configuration Jun 11, 2021
@pavelfeldman
Copy link
Member

Folding into #7121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-test-runner Playwright test specific issues P3-collecting-feedback
Projects
None yet
Development

No branches or pull requests

3 participants