@tramvai/test-puppeteer 2.40.0 → 2.44.2
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.
- package/lib/launch.d.ts +2 -2
- package/lib/router.d.ts +3 -3
- package/package.json +2 -2
package/lib/launch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Browser } from 'puppeteer';
|
|
2
2
|
import puppeteer from 'puppeteer';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type PuppeteerOptions = Parameters<typeof puppeteer.launch>[0];
|
|
4
|
+
type Options = PuppeteerOptions & {
|
|
5
5
|
enableLogging?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const initPuppeteer: (serverUrl: string, { enableLogging, ...options }?: Options) => Promise<{
|
package/lib/router.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Page } from 'puppeteer';
|
|
2
2
|
import type { PAGE_SERVICE_TOKEN } from '@tramvai/tokens-router';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type PageService = typeof PAGE_SERVICE_TOKEN;
|
|
4
|
+
type NavigateOptions = Parameters<PageService['navigate']>[0];
|
|
5
|
+
type UpdateCurrentRouteOptions = Parameters<PageService['updateCurrentRoute']>[0];
|
|
6
6
|
export declare const wrapRouter: (page: Page) => {
|
|
7
7
|
navigate: (options: NavigateOptions) => Promise<any>;
|
|
8
8
|
navigateThenWaitForReload: (options: NavigateOptions) => Promise<[void, import("puppeteer").HTTPResponse | null]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-puppeteer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@tinkoff/utils": "^2.1.2",
|
|
22
|
-
"@tramvai/tokens-router": "2.
|
|
22
|
+
"@tramvai/tokens-router": "2.44.2",
|
|
23
23
|
"console-with-style": "^1.1.0",
|
|
24
24
|
"supports-color": "8.1.1",
|
|
25
25
|
"tslib": "^2.4.0"
|