Skip to content

Commit

Permalink
demonstrate mjs file identified as esm, but handled as cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Barber committed Oct 2, 2023
1 parent 1eba4d5 commit ddbcd24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/integration/playwright-core-esm.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import playwright from 'playwright-core';

if (playwright.chromium.name() !== 'chromium')
throw new Error('playwright-core-esm: could not get name')

if (!playwright.chromium.executablePath())
throw new Error('playwright-core-esm: could not get executablePath')

0 comments on commit ddbcd24

Please sign in to comment.