UNPKG

479 BJavaScriptView Raw
1const viewports = [
2 {
3 width: 768,
4 height: 1024
5 },
6 {
7 width: 490,
8 height: 732
9 },
10 {
11 width: 320,
12 height: 480
13 }
14];
15
16const urls = [
17 `http://localhost:5005`
18]
19
20const config = {
21 defaults: {
22 page: {
23 headers: {
24 "Cookie": "next-flags=ads:off,cookieMessage:off; secure=true"
25 }
26 },
27 timeout: 25000
28 },
29 urls: []
30}
31
32for (viewport of viewports) {
33 for (url of urls) {
34 config.urls.push({
35 url: url,
36 viewport: viewport
37 })
38 }
39}
40
41module.exports = config;