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 /test/playwright/global.setup.js | |
parent | b7d3cef68bc509d0dc907b380f2d1d665aa19149 (diff) | |
parent | 2cd7b14333a727418584d95c71ee6cb10b9a4197 (diff) |
Merge pull request #310 from themoeway/playwright-esm
Change playwright scripts to use ESM
Diffstat (limited to 'test/playwright/global.setup.js')
-rw-r--r-- | test/playwright/global.setup.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/playwright/global.setup.js b/test/playwright/global.setup.js index 442647f8..1a16f120 100644 --- a/test/playwright/global.setup.js +++ b/test/playwright/global.setup.js @@ -15,11 +15,11 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -const {test: setup} = require('@playwright/test'); -const {ManifestUtil} = require('../../dev/manifest-util'); -const {root} = require('./playwright-util'); -const path = require('path'); -const fs = require('fs'); +import {test as setup} from '@playwright/test'; +import fs from 'fs'; +import path from 'path'; +import {ManifestUtil} from '../../dev/manifest-util'; +import {root} from './playwright-util'; const manifestPath = path.join(root, 'ext/manifest.json'); const copyManifestPath = path.join(root, 'ext/manifest-old.json'); @@ -29,4 +29,4 @@ setup('use test manifest', () => { const variant = manifestUtil.getManifest('chrome-playwright'); fs.renameSync(manifestPath, copyManifestPath); fs.writeFileSync(manifestPath, ManifestUtil.createManifestString(variant).replace('$YOMITAN_VERSION', '0.0.0.0')); -});
\ No newline at end of file +}); |