diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-09 22:45:16 +0900 |
---|---|---|
committer | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-09 22:45:16 +0900 |
commit | c25e4c959e226174ff286ab7523eabcc55496bbb (patch) | |
tree | 6d665cd55128760943216784c2b9144f5a0a2b48 /playwright.config.js | |
parent | b7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff) |
Change playwright scripts to use ESM
Diffstat (limited to 'playwright.config.js')
-rw-r--r-- | playwright.config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/playwright.config.js b/playwright.config.js index 11d79e72..acb3e1af 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -15,7 +15,7 @@ * 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. @@ -26,7 +26,7 @@ const {defineConfig, devices} = require('@playwright/test'); /** * @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. */ |