playwright/packages/playwright-test/src
Nowell Strite 53ecdf7db6 cherry-pick(#21106): fix(loader): experimentalLoader with node@18
There is currently a bug when running `node@18.14.2` when running with
experimentalLoader

```
TypeError: The URL must be of scheme file
  at new NodeError (node:internal/errors:399:5)
  at Object.fileURLToPath (node:internal/url:1492:11)
  at resolve (./node_modules/@playwright/test/lib/experimentalLoader.js:39:48)
  at nextResolve (node:internal/modules/esm/loader:163:22)
  at ESMLoader.resolve (node:internal/modules/esm/loader:838:24)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:7)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:21)
```

This came from my test `vrt.spec.ts` which had a non package import
inside of it

```ts
import fs from "node:fs/promises"
```

The test run failed due to node imports not returning fileUrls when
resolved.

---------

Co-authored-by: Nowell Strite <nstrite@nvidia.com>
2023-02-22 15:02:39 -08:00
..
common chore: make watch + ct happy (#20804) 2023-02-10 08:33:25 -08:00
loader chore: calcular pool digests on the loader process side (#20728) 2023-02-07 14:08:17 -08:00
matchers cherry-pick(#20960): fix: simplify protocol for toBeInViewport 2023-02-17 01:02:55 +06:00
plugins fix(watch): fix the tests on win (#20844) 2023-02-14 14:55:49 -08:00
reporters cherry-pick(#20927): chore(junit): render project as an agent name / hostname 2023-02-16 08:18:05 -08:00
runner fix(test runner): --list should ignore '.only' annotations (#20868) 2023-02-13 11:13:30 -08:00
third_party feat(test runner): support jsconfig.json's baseUrl+paths (#19219) 2022-12-01 16:42:25 -08:00
worker chore: move testInfo and timeoutManager to worker/ (#20803) 2023-02-09 19:22:17 -08:00
cli.ts chore: hide watch mode, it is not ready (#20905) 2023-02-14 13:22:44 -08:00
DEPS.list chore: group test runner files by process (#20425) 2023-01-26 17:26:47 -08:00
experimentalLoader.ts cherry-pick(#21106): fix(loader): experimentalLoader with node@18 2023-02-22 15:02:39 -08:00
index.ts chore: move testInfo and timeoutManager to worker/ (#20803) 2023-02-09 19:22:17 -08:00
internalsForTest.ts chore: respect deps when watching files (#20695) 2023-02-06 17:09:16 -08:00
mount.ts chore: group test runner files by process (#20425) 2023-01-26 17:26:47 -08:00
util.ts chore(watch): print current filters (#20696) 2023-02-07 09:48:46 -08:00
utilsBundle.ts chore: bundle chokidar, leave fsevents as an optional dependency (#20762) 2023-02-09 08:40:27 -08:00