MCPcopy
hub / github.com/qawolf/cli / readConfiguredExpectTimeout

Function readConfiguredExpectTimeout

src/domains/runner/initFlowRuntime.test.ts:18–25  ·  view source on GitHub ↗

Reads back the expect timeout the runner configured on @qawolf/flows.

()

Source from the content-addressed store, hash-verified

16
17/** Reads back the expect timeout the runner configured on @qawolf/flows. */
18async function readConfiguredExpectTimeout(): Promise<number> {
19 const idxUrl = import.meta.resolve("@qawolf/flows");
20 const attrsUrl = new URL("./web/expect/attributes.js", idxUrl).href;
21 const { getWebExpectAttributes } = (await import(attrsUrl)) as {
22 getWebExpectAttributes: () => { defaultExpectTimeoutMs: number };
23 };
24 return getWebExpectAttributes().defaultExpectTimeoutMs;
25}
26
27describe("initFlowRuntime", () => {
28 it("resolves using the CLI's own @qawolf/flows", async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected