diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-10 00:05:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 00:05:01 +0000 |
commit | 6b51d59fce9c56f3b1e069f620c5064f8cb51406 (patch) | |
tree | 839f379feabe210433278974a975297cec46a97e /playwright.config.js | |
parent | b7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff) | |
parent | 2cd7b14333a727418584d95c71ee6cb10b9a4197 (diff) |
Merge pull request #310 from themoeway/playwright-esm
Change playwright scripts to use ESM
Diffstat (limited to 'playwright.config.js')
-rw-r--r-- | playwright.config.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/playwright.config.js b/playwright.config.js index 11d79e72..6bf645c4 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -15,18 +15,18 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ // @ts-check -const {defineConfig, devices} = require('@playwright/test'); +import {defineConfig, devices} from '@playwright/test'; /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ -// require('dotenv').config(); +import 'dotenv/config'; /** * @see https://playwright.dev/docs/test-configuration */ -module.exports = defineConfig({ +export default defineConfig({ testDir: './test/playwright', snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}', /* Maximum time one test can run for. */ |