You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
I've had a number of groups who end up with quite a bit more test set-up and tear down needs.
To these students I have recommended they add a central
./test-setup.jsand instruct mocha to load this file explicitly and first.Things that move into this file are setting up globally used mock adapters, the enzyme adapter, and database setup/teardown tasks.
"NODE_ENV='test' mocha ./test-setup \"./server/**/*.spec.js\" \"./client/**/*.spec.js\" \"./script/**/*.spec.js\" --require @babel/polyfill --require @babel/register