Skip to content

Commit

Permalink
chore(core): add log prop to PlatformRunScenarioOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Feb 29, 2024
1 parent 2bb1bfb commit a2bc3ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,20 @@ function createHookedConsole() {
}

/**
* Options for {@link PlatformRunScenario}
*
* @template [Result=unknown] Default is `unknown`
* @typedef PlatformRunScenarioOpts
* @property {import('./scenarios/scenario').NormalizedScenario<Result>} scenario
* @property {boolean} [runWithPrecompiledModules]
* @property {(...args: any[]) => void} [log]
*/

/**
* Scenario runner function provided by the consuming platform.
*
* Called by {@link runAndTestScenario}
*
* @template [Result=unknown] Default is `unknown`
* @callback PlatformRunScenario
* @param {PlatformRunScenarioOpts<Result>} opts
Expand Down

0 comments on commit a2bc3ab

Please sign in to comment.