= request.body && request.body.address if (!userAddress) { userAddress = JSON.parse(userData.address).formatted } if (!request.body || !request.body.pizza || userAddress) throw new Error('To order pizza please provide pizza type and address where pizza should be delivered')
• Serverless decreases the price and speed up the test execution • Focus on business logic, also try testing the parts that are important and critical for your app • Most important, try to understand business requirements before coding and testing • Try serverless, it can make your life easier