TypeError: test is not a function [ Jest ] [express ]
개요 jest 를 이용해 service 단에서 단위테스트를 연습하다 겪은 에러이다. 에러 코드 FAIL __tests__/unit/posts.service.unit.spec.js ● Test suite failed to run TypeError: test is not a function 18 | }); 19 | > 20 | test("Posts Service findAllPosts Method", async () => { | ^ 21 | const findAllPostReturnValue = [ 22 | { 23 | postId: 1, at test (__tests__/unit/posts.service.unit.spec.js:20:3) at Object.describe (__tests__/unit/pos..
2023.07.12