fix(devices): restore devices entry point
This commit is contained in:
parent
9d14a54655
commit
5d28196903
2
index.js
2
index.js
|
|
@ -17,6 +17,7 @@
|
||||||
const {helper} = require('./lib/helper');
|
const {helper} = require('./lib/helper');
|
||||||
const api = require('./lib/api');
|
const api = require('./lib/api');
|
||||||
const packageJson = require('./package.json');
|
const packageJson = require('./package.json');
|
||||||
|
const { DeviceDescriptors } = require('./lib/deviceDescriptors');
|
||||||
|
|
||||||
for (const className in api) {
|
for (const className in api) {
|
||||||
if (typeof api[className] === 'function')
|
if (typeof api[className] === 'function')
|
||||||
|
|
@ -27,4 +28,5 @@ module.exports = {
|
||||||
chromium: new api.ChromiumPlaywright(__dirname, packageJson.playwright.chromium_revision),
|
chromium: new api.ChromiumPlaywright(__dirname, packageJson.playwright.chromium_revision),
|
||||||
firefox: new api.FirefoxPlaywright(__dirname, packageJson.playwright.firefox_revision),
|
firefox: new api.FirefoxPlaywright(__dirname, packageJson.playwright.firefox_revision),
|
||||||
webkit: new api.WebKitPlaywright(__dirname, packageJson.playwright.webkit_revision),
|
webkit: new api.WebKitPlaywright(__dirname, packageJson.playwright.webkit_revision),
|
||||||
|
devices: DeviceDescriptors
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue