UNPKG

@clerk/testing

Version:

Utilities to help you create E2E test suites for apps using Clerk

22 lines 886 B
import type { SetupClerkTestingTokenOptions } from '../common'; type SetupClerkTestingTokenParams = { options?: SetupClerkTestingTokenOptions; }; /** * Bypasses bot protection by appending the testing token in the Frontend API requests. * * @param params.options.frontendApiUrl - The frontend API URL for your Clerk dev instance, without the protocol. * @returns A promise that resolves when the bot protection bypass is set up. * @throws An error if the Frontend API URL is not provided. * @example * import { setupClerkTestingToken } from '@clerk/testing/cypress'; * * it("sign up", () => { * setupClerkTestingToken(); * cy.visit("http://localhost:3000"); * // Continue with your test... * }); */ export declare const setupClerkTestingToken: (params?: SetupClerkTestingTokenParams) => void; export {}; //# sourceMappingURL=setupClerkTestingToken.d.ts.map