aboutsummaryrefslogtreecommitdiffstats
path: root/test/runner/browsers.js
blob: a3a8df0d8c78ee4d1b3b8c65077c1e7dfa7876bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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" );
}