/opt/canhelp/node_modules/next/dist/experimental/testmode/playwright
NameSizeModeActions
default-config.d.ts6300644editdlrm
default-config.js13870644editdlrm
default-config.js.map24460644editdlrm
index.d.ts8710644editdlrm
index.js39940644editdlrm
index.js.map34240644editdlrm
msw.d.ts8300644editdlrm
msw.js28450644editdlrm
msw.js.map35540644editdlrm
next-fixture.d.ts5230644editdlrm
next-fixture.js19590644editdlrm
next-fixture.js.map41360644editdlrm
next-options.d.ts1320644editdlrm
next-options.js1220644editdlrm
next-options.js.map670644editdlrm
next-worker-fixture.d.ts4330644editdlrm
next-worker-fixture.js14190644editdlrm
next-worker-fixture.js.map28860644editdlrm
page-route.d.ts2620644editdlrm
page-route.js19520644editdlrm
page-route.js.map37950644editdlrm
report.d.ts2470644editdlrm
report.js37180644editdlrm
report.js.map63160644editdlrm
step.d.ts4330644editdlrm
step.js7620644editdlrm
step.js.map14980644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/experimental/testmode/playwright/step.js.map (1498B)
{"version":3,"sources":["../../../../src/experimental/testmode/playwright/step.ts"],"sourcesContent":["import type { TestInfo } from '@playwright/test'\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport { test } from '@playwright/test'\n\nexport interface StepProps {\n category: string\n title: string\n apiName?: string\n params?: Record\n}\n\ntype Complete = (result: { error?: any }) => void\n\nexport async function step(\n _testInfo: TestInfo,\n props: StepProps,\n handler: (complete: Complete) => Promise>\n): Promise> {\n let result: Awaited\n let reportedError: any\n try {\n await test.step(props.title, async () => {\n result = await handler(({ error }) => {\n reportedError = error\n if (reportedError) {\n throw reportedError\n }\n })\n })\n } catch (error) {\n if (error !== reportedError) {\n throw error\n }\n }\n return result!\n}\n"],"names":["step","_testInfo","props","handler","result","reportedError","test","title","error"],"mappings":";;;;+BAasBA;;;eAAAA;;;sBAXD;AAWd,eAAeA,KACpBC,SAAmB,EACnBC,KAAgB,EAChBC,OAAoD;IAEpD,IAAIC;IACJ,IAAIC;IACJ,IAAI;QACF,MAAMC,UAAI,CAACN,IAAI,CAACE,MAAMK,KAAK,EAAE;YAC3BH,SAAS,MAAMD,QAAQ,CAAC,EAAEK,KAAK,EAAE;gBAC/BH,gBAAgBG;gBAChB,IAAIH,eAAe;oBACjB,MAAMA;gBACR;YACF;QACF;IACF,EAAE,OAAOG,OAAO;QACd,IAAIA,UAAUH,eAAe;YAC3B,MAAMG;QACR;IACF;IACA,OAAOJ;AACT","ignoreList":[0]}