using JEST to do unit test in JavaScript
instatllation
under the project folder , run the following command in terminal
npm install --save-dav jest
write the class
function addFive(a){
return a+5
}
under the project folder , run the following command in terminal
npm install --save-dav jest
function addFive(a){
return a+5
}
留言
張貼留言