test: configure jest on server and client; fix a bad import
This allows tests to be run with yarn jest
from packages/client/
and packages/server/
folders.
Some server tests are still failing (tests which involve database or networking interactions), and these still need to be fixed or removed.