playwright/packages/playwright-ct-core
Simon Knott effb1ae234
fix(test runner): align with typescript behaviour for resolving index.js and package.json through path mapping (#32078)
Supercedes https://github.com/microsoft/playwright/pull/31915, closes
https://github.com/microsoft/playwright/issues/31811.

When TypeScript resolves a specifier via path mapping, it does not
interpret `package.json`. If path mapping resolves to a directory, it
only looks at the `index.js` file in that directory if it's in CommonJS
mode.

We need to mirror this in our `esmLoader.ts`.

---------

Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
2024-08-12 15:05:19 +02:00
..
src fix(test runner): align with typescript behaviour for resolving index.js and package.json through path mapping (#32078) 2024-08-12 15:05:19 +02:00
types feat(ct): resolve hooksConfig import refs (#31024) 2024-05-28 12:29:52 -07:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
.npmignore chore: pass the private data to the runner via config (#29467) 2024-02-13 09:34:03 -08:00
index.d.ts chore: rename route fixture in ct (#31817) 2024-07-23 07:43:28 -07:00
index.js chore: move dev server to config-based framework extensibility (#30234) 2024-04-05 08:39:51 -07:00
package.json chore: mark 1.47.0-next (#31879) 2024-07-26 17:50:11 +02:00
README.md chore: introduce ct-core to hard-depend on vite (#22437) 2023-04-17 16:19:21 -07:00

BEWARE This package is EXPERIMENTAL and does not respect semver.

Read more at https://playwright.dev/docs/test-components