sync

Unit testing and mocking fs.ReadFileSync

May 28, 2020  -   3 mins read time -   502 words -  garrardkitchen

jest, unit testing, twilio, rabbitmq, twilio taskrouter, mssql, sync, twilio sync, taskrouter

I’d just ran npm run test in a newly created package I’d added to a monorepo (lerna) I’d created for a project I was working on that integrates with Twilio Sync, RabbitMQ, Twilio TaskRouter and MSSQL, and I go this: *******************************consumers\packages\eda [CRMBROK-233 +0 ~2 -0 !]> npm run test > @cf247/eda@1.0.2 test *******************************consumers\packages\eda > jest FAIL __tests__/eda.test.js ● Test suite failed to run ENOENT: no such file or directory, open '. ...