Optional
Returns the subject's element. For a routable subject, uses the app's route matching to select attached sub-pages when rendered with renderInTestApp. The subject uses the supplied mountPath, or the app root when omitted.
renderInTestApp
mountPath
Returns a snapshot of the extension tree structure for testing and debugging. Convenient to use with Jest's inline snapshot testing.
const tester = createExtensionTester(myExtension);expect(tester.snapshot()).toMatchInlineSnapshot(); Copy
const tester = createExtensionTester(myExtension);expect(tester.snapshot()).toMatchInlineSnapshot();
Returns the subject's element. For a routable subject, uses the app's route matching to select attached sub-pages when rendered with
renderInTestApp. The subject uses the suppliedmountPath, or the app root when omitted.