From ddbcd24ce88d742dbd211b87afb80a79f83e0e17 Mon Sep 17 00:00:00 2001 From: Chris Barber Date: Mon, 2 Oct 2023 14:23:29 -0500 Subject: [PATCH] demonstrate mjs file identified as esm, but handled as cjs --- test/integration/playwright-core-esm.mjs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/integration/playwright-core-esm.mjs diff --git a/test/integration/playwright-core-esm.mjs b/test/integration/playwright-core-esm.mjs new file mode 100644 index 00000000..5d383089 --- /dev/null +++ b/test/integration/playwright-core-esm.mjs @@ -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')