npm install quokka --save-dev
script
function add(a, b) {
return a + b;
}
console.log(add(3, 5));
script
const value = 5;
const expected = 10;
assert(value === expected, `Expected ${value} to be ${expected}`);
script
if (skip()) {
console.log("This code block will be skipped");
}
script
it.only("should return the correct result", () => {
// Only this test block will be executed
});
json
{
"babel": true,
"typescript": true,
"file": "src/index.js"
}