Skip to content

add info about globals #306

@jpratt2

Description

@jpratt2

Hello, I get a 404 when I try to edit https://nightwatchjs.org/guide/writing-tests/using-test-globals.html
May I suggest an update:
to add a global variable to the globals.js file, you can point out that it is not necessary to use the "module.exports" section. Just enter your variable above that section, like regular code:

myGlobal = 3000;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions