Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 866 Bytes

dev-README.md

File metadata and controls

36 lines (25 loc) · 866 Bytes

Development / Testing / Contributing

Running the tests:

Running a single test:

jest -t "displays load start"

Testing note:

We use modules, so you need to pass this flag to node:

node --experimental-vm-modules

You need to pass --experimental-vm-modules to node, otherwise you will get this error: In IntelliJ, each test needs this flag pasted into NODE OPTIONS: --experimental-vm-modules

If you don"t, you"ll see an error like:

Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

Running ESlint:

ESLint won't see the mjs files without help

# ESLint won't see the mjs files without help
npx eslint --ext .mjs .