I encountered this error when running `yarn test` in https://serverless-stack.com/chapters/unit-tests-in-serverless.html Solved it by changing the script in package.json to ```json "scripts": { "test": "jest --env=node" }, ```