Jest Live Template
Jest용 라이브 템플릿
![Jest Live Template](/_next/image?url=https%3A%2F%2Fmedia.harrymikoshi.com%2Fcheats%2Ficons%2Fjest.png&w=96&q=75)
기본
desc
description
//$TEST_CLASS_CAPITALIZE$ == capitalize(regularExpression(camelCase(fileNameWithoutExtension()), "Spec|Test",' ') )
describe("$TEST_CLASS_CAPITALIZE$ Test", () => {
test("$END$", async () => {
})
})
postfix
<EXPR>.ext
true 검증
expect(<EXPR>).toBeTruthy()
<EXPR>.exf
false 검증
expect(<EXPR>).toBeFalsy()
expect
ect
expect toBeTruthy
expect($SELECTION$).toBeTruthy()
toEqual(obj용)
ean
any number
Expect.Any(Number)
eas
any string
Expect.Any(String)
cr
const result
const result =