playwright/packages
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
..
html-reporter chore: revert sharded html report (#20923) 2023-02-15 12:38:03 -08:00
playwright chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
playwright-chromium chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
playwright-core feat(firefox): roll to r1379 (#21080) 2023-02-22 09:52:35 -08:00
playwright-ct-react chore: fix cli executable bits (#20973) 2023-02-16 19:49:44 -08:00
playwright-ct-solid chore: fix cli executable bits (#20973) 2023-02-16 19:49:44 -08:00
playwright-ct-svelte chore: fix cli executable bits (#20973) 2023-02-16 19:49:44 -08:00
playwright-ct-vue chore: fix cli executable bits (#20973) 2023-02-16 19:49:44 -08:00
playwright-ct-vue2 chore: fix cli executable bits (#20973) 2023-02-16 19:49:44 -08:00
playwright-firefox chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
playwright-test fix(loader): experimentalLoader with node@18 (#21106) 2023-02-22 14:28:03 -08:00
playwright-webkit chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
protocol/src fix: simplify protocol for toBeInViewport (#20960) 2023-02-16 11:02:19 -08:00
recorder chore: implement pick locator in trace viewer (#20965) 2023-02-17 11:19:53 -08:00
trace/src chore: implement pick locator in trace viewer (#20965) 2023-02-17 11:19:53 -08:00
trace-viewer chore: disable navigating off trace snapshot on hrefs (#21005) 2023-02-17 18:13:45 -08:00
web chore: implement pick locator in trace viewer (#20965) 2023-02-17 11:19:53 -08:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00