@salesforce/core
    Preparing search index...

    Function instantiateContext

    • Instantiate a @salesforce/core test context. This is automatically created by const $$ = testSetup() but is useful if you don't want to have a global stub of @salesforce/core and you want to isolate it to a single describe.

      Note: Call stubContext in your beforeEach to have clean stubs of @salesforce/core every test run.

      Parameters

      • Optionalsinon: SinonStatic

      Returns TestContext

      const $$ = instantiateContext();

      beforeEach(() => {
      $$.init()
      });

      afterEach(() => {
      $$.restore();
      });