playwright/packages/playwright-test/src
Nowell Strite 000583e048
fix(loader): experimentalLoader with node@18 (#21106)
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 14:28:03 -08:00
..
common fix: filter out comments inside fixture destructuring (#20989) 2023-02-21 12:51:40 -08:00
loader chore: calcular pool digests on the loader process side (#20728) 2023-02-07 14:08:17 -08:00
matchers chore: do not use library stack capturer in test runner (#21075) 2023-02-21 19:24:17 -08:00
plugins chore: consolidate http/https fetching (#21104) 2023-02-22 17:09:56 +01:00
reporters chore: do not use library stack capturer in test runner (#21075) 2023-02-21 19:24:17 -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: do not use library stack capturer in test runner (#21075) 2023-02-21 19:24: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 fix(loader): experimentalLoader with node@18 (#21106) 2023-02-22 14:28:03 -08:00
index.ts revert(#12706): also fix related bugs it introduced (#21070) 2023-02-21 14:15:11 -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
store.ts feat: key value store backed by filesystem (#20932) 2023-02-16 16:48:28 -08:00
util.ts chore: do not use library stack capturer in test runner (#21075) 2023-02-21 19:24:17 -08:00
utilsBundle.ts chore: bundle chokidar, leave fsevents as an optional dependency (#20762) 2023-02-09 08:40:27 -08:00