diff options
Diffstat (limited to 'test/runner/browsers.js')
-rw-r--r-- | test/runner/browsers.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/runner/browsers.js b/test/runner/browsers.js new file mode 100644 index 000000000..a3a8df0d8 --- /dev/null +++ b/test/runner/browsers.js @@ -0,0 +1,25 @@ +// This list is static, so no requests are required +// in the command help menu. + +import { getBrowsers } from "./browserstack/api.js"; + +export const browsers = [ + "chrome", + "ie", + "firefox", + "edge", + "safari", + "opera", + "yandex", + "IE Mobile", + "Android Browser", + "Mobile Safari", + "jsdom" +]; + +// A function that can be used to update the above list. +export async function getAvailableBrowsers() { + const browsers = await getBrowsers( { flat: true } ); + const available = [ ...new Set( browsers.map( ( { browser } ) => browser ) ) ]; + return available.concat( "jsdom" ); +} |