Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.15 KB

CONFIGURING.md

File metadata and controls

36 lines (29 loc) · 1.15 KB

Configuring

Most of the configuration part happens in the config file. (wsce.config.js by default)

Here is the default configuration file:

// wsce.config.js

module.exports = {
    scraper: {
        urls: [],
        puppeteerOptions: {},
        addons: [],
        interval: 60_000,
    },
    exporter: {
        port: 9924,
    },
};

wsce.config.js

  • scraper

    • urls: string[] The URLs to measure
    • puppeteerOptions: PuppeteerOptions Options object to pass to the puppeteer launch function
    • addons: Addon[] see ADDONS.md
    • interval: number The scraper's interval
    • forceRecreateBrowser: boolean Force the browser recreation for each test
    • concurrentTests: number Maximum tests to be ran at the same time

    ⚠️ If forceRecreateBrowser is set to true, this will automatically be set to 1

    • queueThreshold: number Maximum tests queue size, the program will exit when the queue exceeds this size,
  • exporter

    • port: number The port for the exporter to listen on