Tests are locatet in ./test folder, and follow project structure for convenience:

├─ test/
│   ├─ client/ # UI tests
│   ├─ models/ # Unit tests
│   └─ server/ # Integration (RPC) tests

Nodeca exposes some global variables & helpers both on server and client envicoment, to simplify tests writing.

Sources for addons are here: https://github.com/nodeca/nodeca.core/tree/master/lib/test.

Server env

Nightmare is patched, to use specific nodeca features.

Overriden Nightmare methods:

Additional Nightmare methods:

Client env