Skip to main content

I am getting the above error when i am running my jest code..

Below is my Jest code..Please help..

import { createElement } from "lwc";

import oppTradelineLists from "c/exOppTradelineLists";

describe("c-exOppTradelineLists",() => {

    afterEach(() => {

        while (document.body.firstChild) {

          document.body.removeChild(document.body.firstChild);

        }

      });

    it("Expects",() => {

        // Create initial element

        const element = createElement("c-exOppTradelineLists",{is: oppTradelineLists});

        document.body.appendChild(element);

    })

});

 
1 件の回答