summaryrefslogtreecommitdiff
path: root/test/playwright/global.teardown.js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-10 00:05:01 +0000
committerGitHub <noreply@github.com>2023-11-10 00:05:01 +0000
commit6b51d59fce9c56f3b1e069f620c5064f8cb51406 (patch)
tree839f379feabe210433278974a975297cec46a97e /test/playwright/global.teardown.js
parentb7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff)
parent2cd7b14333a727418584d95c71ee6cb10b9a4197 (diff)
Merge pull request #310 from themoeway/playwright-esm
Change playwright scripts to use ESM
Diffstat (limited to 'test/playwright/global.teardown.js')
-rw-r--r--test/playwright/global.teardown.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/playwright/global.teardown.js b/test/playwright/global.teardown.js
index 2fb29ebe..6787f255 100644
--- a/test/playwright/global.teardown.js
+++ b/test/playwright/global.teardown.js
@@ -15,14 +15,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-const {test: teardown} = require('@playwright/test');
-const {root} = require('./playwright-util');
-const path = require('path');
-const fs = require('fs');
+import {test as teardown} from '@playwright/test';
+import fs from 'fs';
+import path from 'path';
+import {root} from './playwright-util';
const manifestPath = path.join(root, 'ext/manifest.json');
const copyManifestPath = path.join(root, 'ext/manifest-old.json');
teardown('bring back original manifest', () => {
fs.renameSync(copyManifestPath, manifestPath);
-}); \ No newline at end of file
+});