@brillout/test-e2e 0.5.35 → 0.5.37

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.
@@ -1,4 +1,4 @@
1
1
  export { autoRetry };
2
- declare function autoRetry(test: () => void | Promise<void>, { timeout }?: {
2
+ declare function autoRetry<Result = void>(test: () => Result | Promise<Result>, { timeout }?: {
3
3
  timeout?: number;
4
- }): Promise<void>;
4
+ }): Promise<Result>;
package/dist/autoRetry.js CHANGED
@@ -7,8 +7,7 @@ async function autoRetry(test, { timeout = TIMEOUT_AUTORETRY } = {}) {
7
7
  let i = 0;
8
8
  while (true) {
9
9
  try {
10
- await test();
11
- return;
10
+ return await test();
12
11
  }
13
12
  catch (err) {
14
13
  i = i + 1;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { page } from './page.js';
4
4
  export { editFile, editFileRevert } from './editFile.js';
5
5
  export { testScreenshotFixture } from './testScreenshotFixture.js';
6
6
  export { partRegex } from '@brillout/part-regex';
7
+ export { default as pc } from '@brillout/picocolors';
7
8
  export { autoRetry } from './autoRetry.js';
8
9
  export { fetch, fetchHtml } from './fetch.js';
9
10
  export { expectLog } from './Logs.js';
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ export { page } from './page.js';
4
4
  export { editFile, editFileRevert } from './editFile.js';
5
5
  export { testScreenshotFixture } from './testScreenshotFixture.js';
6
6
  export { partRegex } from '@brillout/part-regex';
7
+ export { default as pc } from '@brillout/picocolors';
7
8
  export { autoRetry } from './autoRetry.js';
8
9
  export { fetch, fetchHtml } from './fetch.js';
9
10
  export { expectLog } from './Logs.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.5.35",
3
+ "version": "0.5.37",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",