Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/reference/config/browsers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1075,10 +1075,12 @@ The section has the following parameters:
</tr>
<tr>
<td>`mapDependencyRelativePath`</td>
<td>`null | (dependency: { scope: "browser" | "testplane", relativePath: string }) => string | boolean | void`</td>
<td>`null | (dependency: { scope: "browser" | "testplane", reason: "browser-css-import" | "browser-js-coverage" | "testplane-js-import" | "testplane-assert-view-reference", relativePath: string }) => string | boolean | void`</td>
<td>`null`</td>
<td>
Callback, which accepts test dependency path in POSIX style and maps it to another path.
Callback, which accepts test dependency info and maps its path to another path.
The dependency object contains `scope` (`"browser"` or `"testplane"`), `relativePath` in POSIX style, and `reason` —
one of `"browser-css-import"`, `"browser-js-coverage"`, `"testplane-js-import"`, or `"testplane-assert-view-reference"`, indicating how the dependency was collected.
Return a mapped `string` path to remap, `true` to keep the original path unchanged,
or a falsy value (`false`, `undefined`, `void`) to filter the dependency out completely.
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1078,10 +1078,12 @@ export = {
</tr>
<tr>
<td>`mapDependencyRelativePath`</td>
<td>`null | (dependency: { scope: "browser" | "testplane", relativePath: string }) => string | boolean | void`</td>
<td>`null | (dependency: { scope: "browser" | "testplane", reason: "browser-css-import" | "browser-js-coverage" | "testplane-js-import" | "testplane-assert-view-reference", relativePath: string }) => string | boolean | void`</td>
<td>`null`</td>
<td>
Коллбэк, который принимает путь зависимости теста в стиле POSIX и преобразует его в другой путь.
Коллбэк, который принимает информацию о зависимости теста и преобразует её путь в другой.
Объект зависимости содержит `scope` (`"browser"` или `"testplane"`), `relativePath` в стиле POSIX и `reason` —
одно из значений: `"browser-css-import"`, `"browser-js-coverage"`, `"testplane-js-import"` или `"testplane-assert-view-reference"`, указывающее на способ сбора зависимости.
Верните строку `string` для переназначения пути, `true` для сохранения исходного пути без изменений,
или falsy-значение (`false`, `undefined`, `void`) для полного исключения зависимости.
</td>
Expand Down
Loading