@piwitests/reporter 0.62.0 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -689,6 +689,18 @@ declare function intentAt(intents: BarIntents, what: RunIntent, stop: IntentStop
689
689
  * one or its call log, four at most and `MAX_STOP_ERROR` characters; null for an error with no text.
690
690
  */
691
691
  declare function failureError(message: string | undefined): string | null;
692
+ /** A place in the test's code. */
693
+ type CodePlace = {
694
+ file: string;
695
+ line: number;
696
+ column: number;
697
+ };
698
+ /**
699
+ * Where an error happened in the test's code: the place the runner gives it, else the first frame of its stack in a
700
+ * file of the project, not in a package, Node's own or this package's, as an absolute path. `windows` reads the frames
701
+ * as Windows writes them. Null for an error with no such frame (a test timeout).
702
+ */
703
+ declare function errorPlace(error: unknown, windows?: boolean): CodePlace | null;
692
704
  /**
693
705
  * The fixtures `piwiFixtures` / `extendPiwiFixtures` contribute. The single
694
706
  * added fixture is `piwiCapture`: an auto, test-scoped teardown hook that
@@ -745,4 +757,4 @@ declare const piwiFixtures: Fixtures<PiwiFixtures, PiwiWorkerFixtures, Playwrigh
745
757
  */
746
758
  declare function extendPiwiFixtures<TestArgs extends FixtureArgs, WorkerArgs extends FixtureArgs>(test: TestType<TestArgs, WorkerArgs>): TestType<TestArgs & PiwiFixtures, WorkerArgs & PiwiWorkerFixtures>;
747
759
 
748
- export { CAPTURED_ATTRS_ARG, type IntentStop, LocatorPageLog, type PageState, type PiwiFixtures, type PiwiWorkerFixtures, type RawPageState, type RawVitalEntry, activeResourceLedger, ariaSnapshotBestEffort, ariaSnapshotJSONBestEffort, boxCaptureFrames, buildPageState, callMethod, codeReachRoots, computeCoreVitals, configuredCodeReachRoots, extendPiwiFixtures, failureError, intentAt, internalCall, noteLocatorCall, noteNavigation, noteResourceUse, pageMapFetcher, piwiFixtures, readPageInteraction, recordResourceCensus, resolveCodeReach, startCodeReach, startResourceLedger, stopCodeReach, stopResourceLedger };
760
+ export { CAPTURED_ATTRS_ARG, type IntentStop, LocatorPageLog, type PageState, type PiwiFixtures, type PiwiWorkerFixtures, type RawPageState, type RawVitalEntry, activeResourceLedger, ariaSnapshotBestEffort, ariaSnapshotJSONBestEffort, boxCaptureFrames, buildPageState, callMethod, codeReachRoots, computeCoreVitals, configuredCodeReachRoots, errorPlace, extendPiwiFixtures, failureError, intentAt, internalCall, noteLocatorCall, noteNavigation, noteResourceUse, pageMapFetcher, piwiFixtures, readPageInteraction, recordResourceCensus, resolveCodeReach, startCodeReach, startResourceLedger, stopCodeReach, stopResourceLedger };