The database faked in setup.ts within the worker package allows dynamically mocking different tables/queries, making tests a lot more succinct.
These mocks, along with the faked table/column definitions, should be moved to test-fixtures and shared between both api and worker tests.
The database faked in
setup.tswithin theworkerpackage allows dynamically mocking different tables/queries, making tests a lot more succinct.These mocks, along with the faked table/column definitions, should be moved to test-fixtures and shared between both
apiandworkertests.