IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

TypeScript

Check yourself

  1. 1.You have a TypeScript error in your test file — a method call with the wrong argument type. You run 'npx playwright test' and the tests execute. What's happening?
  2. 2.Where should you add a separate tsconfig.json for tests so that test-specific TypeScript settings don't affect the main app?
  3. 3.Which tsconfig options does Playwright actually read when transpiling test files?
  4. 4.You want to import test fixtures using @fixtures/auth instead of ../../fixtures/auth. What do you need to configure?
  5. 5.What is the correct CLI command to run type-checking on test files without executing them?
  6. 6.How does Playwright handle TypeScript without requiring a separate compilation step before running tests?
  7. 7.How do you explicitly point Playwright to a specific tsconfig file instead of relying on auto-detection?
  8. 8.You are adding a custom fixture that extends the base test. How does TypeScript know the type of the new fixture property (e.g. loggedInPage) when used inside tests?