here I am attaching the info. to debug the issue:
want to test the priceformatter function the code organization is quite similar to the tutorial , the code is also same from the tutorial however the monerTest.js file is in the spec folder which i have given the path to recognize it as a script , code moneyTest.js : import { priceFormatter } from "../../scripts/utils/money";
here I am attaching the info. to debug the issue: want to test the priceformatter function the code organization is quite similar to the tutorial , the code is also same from the tutorial however the monerTest.js file is in the spec folder which i have given the path to recognize it as a script , code moneyTest.js : import { priceFormatter } from "../../scripts/utils/money";
console.log("test suit: formatcurrancy");
describe('test suit: fromate currancy', () => { it('convert cents into dollars', () => { expect(priceFormatter(2095)).toEqual(20.95); }); });,
test.js : <!DOCTYPE html>