@browsermation/test 0.0.5 → 0.0.6

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.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import 'dotenv/config';
package/dist/bin/cli.js CHANGED
@@ -42872,7 +42872,7 @@ var {
42872
42872
  // package.json
42873
42873
  var package_default = {
42874
42874
  name: "@browsermation/test",
42875
- version: "0.0.5",
42875
+ version: "0.0.6",
42876
42876
  description: "The testing platform for Playwright by Browsermation.",
42877
42877
  main: "dist/index.js",
42878
42878
  types: "dist/index.d.ts",
package/dist/core.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { Readable } from 'node:stream';
2
+ import 'dotenv/config';
3
+ /**
4
+ * The main function that orchestrates zipping and uploading.
5
+ * @param folderPath The path to the folder to process.
6
+ * @param testFiles The list of test files to include in the upload.
7
+ */
8
+ export declare function zip(folder: string, testFiles: string[]): Promise<Buffer>;
9
+ export declare function upload(zipBuffer: Buffer, shardNumber: number, totalShards: number, playwrightConfig: object, options: object, eventStream: Readable): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { PlaywrightTestConfig } from 'playwright/test';
2
+ export declare function defineConfig(config: PlaywrightTestConfig): Promise<PlaywrightTestConfig>;
@@ -0,0 +1 @@
1
+ export declare function compileFileUsingEsbuild(folder: string, filepath: string): Promise<unknown>;
package/dist/http.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function downloadFile(fileUrl: string, outputLocationPath: string): Promise<unknown>;
@@ -0,0 +1,2 @@
1
+ export { defineConfig } from './defineConfig';
2
+ export { test } from './test';
@@ -0,0 +1,3 @@
1
+ export declare function getConfigViaTypescript(folder: string): Promise<unknown>;
2
+ export declare function getConfig(projectPath: string): Promise<unknown>;
3
+ export declare function getUniqueFilesFromJson(data: any, key?: string): any[];
package/dist/test.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
@@ -0,0 +1,5 @@
1
+ import { spawn } from 'node:child_process';
2
+ export declare function startTunnel(tunnelProcess: ReturnType<typeof spawn> | null, options: any): Promise<{
3
+ tunnelProcess: import("child_process").ChildProcess;
4
+ tunnelUrl: string;
5
+ }>;
package/dist/zip.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Zips a folder to a Buffer. it keeps the folder structure intact.
3
+ * @param folder the folder where the testFiles are located
4
+ * @param testFiles Array of file paths to include in the zip.
5
+ */
6
+ export declare function zipFolderToBuffer(folder: string, testFiles: string[]): Promise<Buffer>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsermation/test",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",