Passed
Pull Request — master (#41)
by
unknown
04:25
created

jest-puppeteer.config.js (1 issue)

Labels
Severity
1
const IS_NODE_DEBUG =
2
    typeof v8debug === 'object' || /--debug|--inspect/.test(process.execArgv.join(' ')) || /debug/.test(process.env.NODE_OPTIONS);
0 ignored issues
show
The variable v8debug seems to be never declared. If this is a global, consider adding a /** global: v8debug */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
3
4
module.exports = {
5
    launch: {
6
        // Additional arguments to pass to the browser instance.
7
        args: ['--lang=en-GB', '--start-maximized'],
8
9
        // Whether to run browser in headless mode or standard, window mode
10
        headless: !IS_NODE_DEBUG,
11
12
        // auto-open devtools
13
        devtools: IS_NODE_DEBUG,
14
15
        // Slows down Puppeteer operations by the specified amount of milliseconds
16
        slowMo: 0,
17
18
        //  Whether to pipe the browser console
19
        dumpio: true,
20
21
        defaultViewport: {
22
            width: 1280,
23
            height: 720,
24
        },
25
    },
26
27
    // Used to start http server
28
    server: {
29
        command: 'node test/functional/server/start-server.js',
30
        port: 9000,
31
        usedPortAction: 'error',
32
    },
33
};
34