Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Playwright’s “No Tests Found” message means the runner collected zero test files or zero tests from the files it selected. Fix it by checking, in order, the loaded configuration, testDir, filename matching, ignore rules, command-line filters, generated-file output, and finally the test declarations themselves. The commands below let you distinguish a discovery problem from a collection problem without running the suite.
Start with a two-minute diagnosis
Run these commands from the project directory:
npx playwright test --list
npx playwright test tests/example.spec.ts
npx playwright test --config=playwright.config.ts
--listreports the tests Playwright can collect without executing them.- An explicit file path bypasses broad discovery and tells you whether that file is selectable.
--configremoves uncertainty about which configuration file the command uses.
If --list shows nothing and the explicit path fails, investigate directories, names, extensions, ignores, and generated files. If the file appears in --list but contains no tests, stop changing filename patterns and inspect the declarations inside that file.
1. Confirm the configuration and test directory
Find the configuration Playwright is actually loading
By default, the CLI looks for a Playwright configuration in the current directory. A different working directory, a renamed file, or a moved configuration can make the command use another project’s settings. Select the intended file explicitly:
npx playwright test --config=playwright.config.ts --list
Use the path and filename that exist in your repository. The -c and --config options accept a configuration file or a test directory. In continuous integration, make the option explicit so a changed working directory cannot silently alter discovery.
Recommended Free Tools
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Check testDir
testDir is the directory Playwright searches for test files. In the standard configuration example, a value such as tests is relative to the configuration file. Therefore, moving playwright.config.ts can change the effective location even when the text testDir: 'tests' is unchanged.
Verify all three locations together:
- the directory containing
playwright.config.ts(or the config passed with--config), - the directory named by
testDir, and - the actual directory containing your test files.
A test outside the configured directory is invisible unless you change testDir or move the file.
2. Match the filename and extension
Understand the documented default
Playwright’s current configuration documentation describes the default testMatch pattern as .*(test|spec).(js|ts|mjs). In practical terms, names containing test or spec and ending in one of those extensions are candidates. Examples include:
tests/login.spec.tstests/cart.test.jstests/report.spec.mjs
Names such as tests/login.ts, tests/checks.jsx, or tests/login.spec.tsx do not match that documented default. Rename the file or set a deliberate testMatch pattern for your project.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsCheck custom testMatch
A project setting overrides the default. testMatch can use glob patterns or regular expressions. Compare the complete path and extension with the configured value; do not assume the default still applies. A narrow pattern such as **/*.e2e.ts will exclude a perfectly valid checkout.spec.ts.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
When diagnosing, temporarily simplify the pattern or run an explicit file:
npx playwright test tests/checkout.spec.ts --list
If the explicit file is listed, the file is valid and the broad matcher is the likely narrowing point.
3. Remove accidental exclusions
testIgnore accepts glob patterns or regular expressions for files that should not be collected. An ignore rule can be broader than intended—for example, an expression aimed at fixture files may also match a directory name used by real tests.
Audit the effective ignore rules
- Search the loaded configuration for every
testIgnoreentry. - Check whether a parent-directory pattern matches the test path.
- Look for a regular expression that matches a common substring such as
testore2e. - Remove or narrow the rule only after confirming which files it should exclude.
Run npx playwright test --list after each change. That keeps the diagnosis focused on collection instead of mixing it with execution failures.
4. Check the command-line filter
Every non-option argument to playwright test is a regular expression matched against the full test-file path. It is not simply a literal shell filename. This explains why a path that looks correct can select nothing.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Quote paths and account for regular-expression syntax
Shells can expand characters before Playwright receives them, and characters such as ., [, ], ^, and $ have regular-expression meanings. Quote the argument:
npx playwright test 'tests/account/login.spec.ts'
If you want a literal dot in a regular expression, escape it, or use a distinctive directory or basename that avoids metacharacters. Also verify capitalization on case-sensitive systems and provide the path relative to the directory from which the command runs.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Separate a filter problem from a discovery problem
First run:
npx playwright test --list
Then run the known file without additional filters. If the unfiltered list contains tests but a command with a positional argument does not, the argument’s regular expression or shell quoting is the issue—not testDir or testMatch.
5. Verify generated test files exist
Some projects generate JavaScript test files from templates, TypeScript, or another build step. If the configuration matches generated output but that step did not run, Playwright has no file to collect. Check the exact directory and extension that the configuration expects, then run the project’s generation command before Playwright.
This is project-specific: Playwright does not generally require TypeScript test files to be compiled first. The relevant question is whether your own configuration points at generated files rather than source files.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
- Confirm the generation command completed successfully.
- Inspect the output directory in the same environment where tests run.
- Ensure cleanup scripts did not delete the generated files.
- Make the build step an explicit dependency of the test job in CI.
6. Distinguish “no files” from “zero tests in a file”
A file can be selected while Playwright collects zero tests from it. Once the path appears in --list, inspect the file’s declarations rather than changing discovery settings.
Free tools Windows power users keep installed
One-click scans. No signup required.
Check declarations at collection time
- Confirm the file imports
testfrom the Playwright test package and actually callstest()or defines a populatedtest.describe(). - Look for conditional code that skips every declaration in the current environment.
- Check data-driven loops for an empty input array.
- Keep test declarations synchronous during collection unless the installed Playwright version explicitly supports the pattern you are using.
A 2021 issue discussed an asynchronous test.describe callback and data-driven declarations as a suspected cause. That historical report is not a universal diagnosis for current releases. Reproduce the behavior with a minimal file and consult the documentation for the version installed in your project.
Use this decision table
| What you observe | Most likely scope | Next action |
|---|---|---|
--list is empty and an explicit path fails |
Config, testDir, matcher, ignore rule, or missing file |
Pass --config, verify the directory, filename, extension, ignores, and generated output. |
--list is empty, but an explicit path lists a test |
Broad matcher, ignore rule, or directory scope | Compare the full path with testMatch and testIgnore. |
| Tests appear only when a path is quoted or simplified | CLI regular-expression or shell parsing | Quote the argument and escape regular-expression metacharacters. |
| The file is listed but no tests are collected | Declarations or collection-time logic | Inspect imports, conditional branches, data arrays, and asynchronous declaration code. |
| Source exists but the configured output does not | Skipped or failed generation step | Run and verify the build that creates the files Playwright matches. |
Common fixes that prevent the error from returning
Keep paths stable
Use a configuration location and testDir relationship that remains clear after repository moves. If the config must move, update relative paths deliberately and test with --config.
Make CI selection explicit
Run the same config and discovery check in CI that you use locally:
npx playwright test --config=playwright.config.ts --list
npx playwright test --config=playwright.config.ts
This catches a wrong working directory, an absent generated directory, or a case-sensitive filename before a long test job starts.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Keep matching rules narrow but understandable
Choose a naming convention such as *.spec.ts, document it beside the configuration, and avoid overlapping ignore patterns. A predictable convention reduces accidental selection changes when new folders are added.
Troubleshooting checklist
- Run
npx playwright test --list. - Pass the intended file with
--config. - Resolve the config file’s location and its
testDir. - Compare the complete filename and extension with
testMatch. - Inspect every
testIgnoreglob or regular expression. - Quote positional paths and remember they are regular expressions over full paths.
- Verify generated files exist in the runtime environment.
- If the file is listed, debug test declarations and collection-time logic.
- Use the installed version’s
npx playwright test --helpwhen behavior differs from current documentation.
Or skip the browser setup
If your real goal is a clean webpage image or PDF rather than running browser tests, ScreenshotNeo provides a single HTTP request instead of a Playwright setup. It accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.
See the ScreenshotNeo documentation for parameters and response details. A basic request is:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
Every plan includes its features: full-page and element capture, device presets or custom viewports, dark mode, retina scale, PDF controls, custom CSS and JavaScript, clicks, waits, request blocking, headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, TTL caching, signed links, asynchronous webhooks, bulk capture for 100 URLs per call, a usage API, and an OpenAPI specification. The parameter names used by other screenshot APIs also work for easier migration.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchThe Free plan includes 1,000 shots per month with no card. Paid plans are Starter $5 for 3,000, Growth $15 for 15,000, Pro $39 for 60,000, Scale $99 for 250,000, and Business $249 for 1,000,000; yearly billing gives two months free. If that fits your use case, sign up for ScreenshotNeo and start with the free allowance.
FAQ
Does Playwright require compiling TypeScript tests?
No general requirement is established here. Compilation is relevant only when your project’s configuration matches generated JavaScript output instead of the TypeScript source files.
Why does a full path argument still select nothing?
The argument is a regular expression applied to the full test-file path. Shell expansion, regex metacharacters, capitalization, or a different working directory can change what it matches.
What should I do when the error began after moving the config?
Pass the config explicitly, then recalculate the relative testDir path from the new config location. A relocation is a reason to recheck settings, not proof of a universal Playwright bug.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

