aboutsummaryrefslogtreecommitdiff
path: root/playwright.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'playwright.config.js')
-rw-r--r--playwright.config.js6
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. */