playwright/packages/playwright-test
Joel Einbinder 7caf05b24a
fix(playwright-test): have the proper default export (#7328)
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).
2021-06-25 15:29:22 -07:00
..
index.d.ts fix(playwright-test): have the proper default export (#7328) 2021-06-25 15:29:22 -07:00
index.js fix(playwright-test): have the proper default export (#7328) 2021-06-25 15:29:22 -07:00
index.mjs fix(playwright-test): have the proper default export (#7328) 2021-06-25 15:29:22 -07:00
install.js feat(test): introduce npx playwright test (#6816) 2021-06-03 08:07:55 -07:00
README.md docs: make docs test-first (#7214) 2021-06-18 10:09:38 -07:00

@playwright/test

This package contains Playwright Test.