Skip to content
Yichao Yu edited this page Jan 20, 2021 · 2 revisions

The tests/ directory contains some unit tests for our server and other developtment tools.

  • tests/runtests.js will run all the tests we have (not a lot at the moment).

  • tests/test_server.js will run the test server which is useful for checking the UI.

The cmake file in tests/ directory creates custom targets to run the scripts above with the proper environment variables setup (e.g. for the addon directory, NODE_ENV and Next.js compilation directory). Additionally, we also have a node-repl target which starts a nodejs REPL that has the proper environment variables setup so that we can load and test our server side code.

Clone this wiki locally