rrweb-browser-test 2.1.3 → 2.2.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.
package/dist/index.d.cts CHANGED
@@ -1,15 +1,21 @@
1
1
  import { eventWithTime } from '@rrweb/types';
2
2
 
3
3
  type TestOptions = {
4
- framework: 'playwright' | 'puppeteer' | 'cypress' | 'selenium';
4
+ framework: 'playwright' | 'puppeteer' | 'cypress' | 'selenium' | 'appium' | 'espresso' | 'xcuitest' | 'detox';
5
5
  };
6
6
  declare const TestFramework: {
7
- PLAYWRIGHT: string;
8
- PUPPETEER: string;
9
- CYPRESS: string;
10
- SELENIUM: string;
7
+ readonly PLAYWRIGHT: "playwright";
8
+ readonly PUPPETEER: "puppeteer";
9
+ readonly CYPRESS: "cypress";
10
+ readonly SELENIUM: "selenium";
11
+ readonly APPIUM: "appium";
12
+ readonly ESPRESSO: "espresso";
13
+ readonly XCUITEST: "xcuitest";
14
+ readonly DETOX: "detox";
11
15
  };
16
+ /** Frameworks that target native mobile apps (vs. web browsers). */
17
+ declare const MOBILE_FRAMEWORKS: readonly ["appium", "espresso", "xcuitest", "detox"];
12
18
 
13
19
  declare const generateBrowserTests: (events: Array<eventWithTime | string>, options?: TestOptions) => string;
14
20
 
15
- export { TestFramework, generateBrowserTests };
21
+ export { MOBILE_FRAMEWORKS, TestFramework, type TestOptions, generateBrowserTests };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,21 @@
1
1
  import { eventWithTime } from '@rrweb/types';
2
2
 
3
3
  type TestOptions = {
4
- framework: 'playwright' | 'puppeteer' | 'cypress' | 'selenium';
4
+ framework: 'playwright' | 'puppeteer' | 'cypress' | 'selenium' | 'appium' | 'espresso' | 'xcuitest' | 'detox';
5
5
  };
6
6
  declare const TestFramework: {
7
- PLAYWRIGHT: string;
8
- PUPPETEER: string;
9
- CYPRESS: string;
10
- SELENIUM: string;
7
+ readonly PLAYWRIGHT: "playwright";
8
+ readonly PUPPETEER: "puppeteer";
9
+ readonly CYPRESS: "cypress";
10
+ readonly SELENIUM: "selenium";
11
+ readonly APPIUM: "appium";
12
+ readonly ESPRESSO: "espresso";
13
+ readonly XCUITEST: "xcuitest";
14
+ readonly DETOX: "detox";
11
15
  };
16
+ /** Frameworks that target native mobile apps (vs. web browsers). */
17
+ declare const MOBILE_FRAMEWORKS: readonly ["appium", "espresso", "xcuitest", "detox"];
12
18
 
13
19
  declare const generateBrowserTests: (events: Array<eventWithTime | string>, options?: TestOptions) => string;
14
20
 
15
- export { TestFramework, generateBrowserTests };
21
+ export { MOBILE_FRAMEWORKS, TestFramework, type TestOptions, generateBrowserTests };