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

feat(test runner): rework how tsconfig is applied #29882

Closed
wants to merge 1 commit into from

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Mar 11, 2024

Previously, test runner would load tsconfig for each imported file based on its location, going up the directory tree.

Now, test runner mostly uses a single tsconfig for all imported files and respects files, include and exclude properties to determine whether to apply tsconfig to a particular file or not.

For backwards compatibility, root tsconfig is used to load playwright.config.ts, but when testDir has its own tsconfig, it used for loading all tests instead of the root tsconfig.

This comment has been minimized.

Previously, test runner would load tsconfig for each imported file
based on its location, going up the directory tree.

Now, test runner mostly uses a single tsconfig for all imported
files and respects `files`, `include` and `exclude` properties to
determine whether to apply tsconfig to a particular file or not.

For backwards compatibility, root tsconfig is used to load
`playwright.config.ts`, but when `testDir` has its own tsconfig,
it used for loading all tests instead of the root tsconfig.
Copy link
Contributor

Test results for "tests 1"

7 flaky ⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [firefox-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [playwright-test] › ui-mode-trace.spec.ts:263:5 › should reveal errors in the sourcetab
⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [playwright-test] › ui-mode-test-screencast.spec.ts:21:5 › should show screenshots
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all

26966 passed, 631 skipped
✔️✔️✔️

Merge workflow run.

@pavelfeldman
Copy link
Member

Archving

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants