mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
7caf05b24a
There are 3 ways to import `@playwright/test` library in the modern Node.js ecosystem: - Using `require`: works great, this patch doesn't change it - Using `import` statement from `.mjs` file - we have wrong `default` for @playwright/test that should be a `test`. This is what test checks for - Using `import test from '@playwright/test'` from `.ts` file - was broken because TypeScript thought it's a CJS module, whereas it's a ESM module in reality. Also, typescript types import from `.d.ts` file was broken because we had no default export (`export *` syntax does not export default). |
||
---|---|---|
.. | ||
index.d.ts | ||
index.js | ||
index.mjs | ||
install.js | ||
README.md |
@playwright/test
This package contains Playwright Test.