@stablyai/playwright-test 0.2.0-next.1 → 1.0.0-next.1

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.cjs CHANGED
@@ -19,21 +19,26 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- defineStablyConfig: () => import_internal_playwright_test2.defineStablyConfig,
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ Agent: () => import_playwright_base3.Agent,
25
25
  expect: () => expect,
26
26
  setApiKey: () => import_playwright_base3.setApiKey,
27
+ stablyReporter: () => import_playwright_reporter.stablyReporter,
27
28
  test: () => test
28
29
  });
29
- module.exports = __toCommonJS(index_exports);
30
+ module.exports = __toCommonJS(src_exports);
31
+ var import_test = require("@playwright/test");
30
32
  var import_playwright_base = require("@stablyai/playwright-base");
31
- var import_internal_playwright_test = require("@stablyai/internal-playwright-test");
32
- var import_internal_playwright_test2 = require("@stablyai/internal-playwright-test");
33
33
  var import_playwright_base2 = require("@stablyai/playwright-base");
34
+ var import_playwright_reporter = require("@stablyai/playwright-reporter");
34
35
  var import_playwright_base3 = require("@stablyai/playwright-base");
35
- __reExport(index_exports, require("@stablyai/internal-playwright-test"), module.exports);
36
- var test = import_internal_playwright_test.test.extend({
36
+ __reExport(src_exports, require("@playwright/test"), module.exports);
37
+ var test = import_test.test.extend({
38
+ agent: async ({ context }, use) => {
39
+ const agent = context.newAgent();
40
+ await use(agent);
41
+ },
37
42
  browser: async ({ browser }, use) => {
38
43
  await use((0, import_playwright_base2.augmentBrowser)(browser));
39
44
  },
@@ -44,13 +49,14 @@ var test = import_internal_playwright_test.test.extend({
44
49
  await use((0, import_playwright_base2.augmentPage)(page));
45
50
  }
46
51
  });
47
- var expect = import_internal_playwright_test.expect.extend(import_playwright_base2.stablyPlaywrightMatchers);
52
+ var expect = import_test.expect.extend(import_playwright_base2.stablyPlaywrightMatchers);
48
53
  // Annotate the CommonJS export names for ESM import in node:
49
54
  0 && (module.exports = {
50
- defineStablyConfig,
55
+ Agent,
51
56
  expect,
52
57
  setApiKey,
58
+ stablyReporter,
53
59
  test,
54
- ...require("@stablyai/internal-playwright-test")
60
+ ...require("@playwright/test")
55
61
  });
56
62
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport {\n expect as playwrightExpect,\n test as playwrightTest,\n} from \"@stablyai/internal-playwright-test\";\n\n// not sure why this is required\nexport { defineStablyConfig } from \"@stablyai/internal-playwright-test\";\n\nimport {\n augmentBrowser,\n augmentBrowserContext,\n augmentPage,\n stablyPlaywrightMatchers,\n} from \"@stablyai/playwright-base\";\n\nexport { setApiKey } from \"@stablyai/playwright-base\";\n\nexport const test: typeof playwrightTest = playwrightTest.extend({\n browser: async ({ browser }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowser(browser as any) as any);\n },\n context: async ({ context }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowserContext(context as any) as any);\n },\n page: async ({ page }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentPage(page as any) as any);\n },\n});\n\nexport const expect = playwrightExpect.extend(stablyPlaywrightMatchers);\n\nexport * from \"@stablyai/internal-playwright-test\";\n\ndeclare module \"@stablyai/internal-playwright-test\" {\n export type ScreenshotPromptOptions =\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n import(\"@stablyai/internal-playwright-test\").PageAssertionsToHaveScreenshotOptions;\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface LocatorAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface PageAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAO;AACP,sCAGO;AAGP,IAAAA,mCAAmC;AAEnC,IAAAC,0BAKO;AAEP,IAAAA,0BAA0B;AAmB1B,0BAAc,+CAnCd;AAkBO,IAAM,OAA8B,gCAAAC,KAAe,OAAO;AAAA,EAC/D,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,QAAI,wCAAe,OAAc,CAAQ;AAAA,EACjD;AAAA,EACA,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,QAAI,+CAAsB,OAAc,CAAQ;AAAA,EACxD;AAAA,EACA,MAAM,OAAO,EAAE,KAAK,GAAG,QAAQ;AAE7B,UAAM,QAAI,qCAAY,IAAW,CAAQ;AAAA,EAC3C;AACF,CAAC;AAEM,IAAM,SAAS,gCAAAC,OAAiB,OAAO,gDAAwB;","names":["import_internal_playwright_test","import_playwright_base","playwrightTest","playwrightExpect"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { BrowserContext } from \"@playwright/test\";\nimport {\n expect as playwrightExpect,\n test as playwrightTest,\n} from \"@playwright/test\";\nimport \"@stablyai/playwright-base\";\n\nimport type { Agent } from \"@stablyai/playwright-base\";\nimport {\n augmentBrowser,\n augmentBrowserContext,\n augmentPage,\n stablyPlaywrightMatchers,\n} from \"@stablyai/playwright-base\";\n\nexport { stablyReporter } from \"@stablyai/playwright-reporter\";\nexport { Agent, setApiKey } from \"@stablyai/playwright-base\";\n\nexport const test: typeof playwrightTest = playwrightTest.extend<{\n agent: Agent;\n}>({\n agent: async (\n { context }: { context: BrowserContext },\n use: (agent: Agent) => Promise<void>,\n ) => {\n // Create a default agent from the default context\n const agent = context.newAgent();\n await use(agent);\n },\n browser: async ({ browser }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowser(browser as any) as any);\n },\n context: async ({ context }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowserContext(context as any) as any);\n },\n page: async ({ page }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentPage(page as any) as any);\n },\n});\n\nexport const expect = playwrightExpect.extend(stablyPlaywrightMatchers);\n\nexport * from \"@playwright/test\";\n\ndeclare module \"@playwright/test\" {\n export type ScreenshotPromptOptions =\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n import(\"@playwright/test\").PageAssertionsToHaveScreenshotOptions;\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface LocatorAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface PageAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n\n // Add agent fixture to test args\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface PlaywrightTestArgs {\n agent: Agent;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAGO;AACP,6BAAO;AAGP,IAAAA,0BAKO;AAEP,iCAA+B;AAC/B,IAAAA,0BAAiC;AA6BjC,wBAAc,6BA7Cd;AAkBO,IAAM,OAA8B,YAAAC,KAAe,OAEvD;AAAA,EACD,OAAO,OACL,EAAE,QAAQ,GACV,QACG;AAEH,UAAM,QAAQ,QAAQ,SAAS;AAC/B,UAAM,IAAI,KAAK;AAAA,EACjB;AAAA,EACA,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,QAAI,wCAAe,OAAc,CAAQ;AAAA,EACjD;AAAA,EACA,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,QAAI,+CAAsB,OAAc,CAAQ;AAAA,EACxD;AAAA,EACA,MAAM,OAAO,EAAE,KAAK,GAAG,QAAQ;AAE7B,UAAM,QAAI,qCAAY,IAAW,CAAQ;AAAA,EAC3C;AACF,CAAC;AAEM,IAAM,SAAS,YAAAC,OAAiB,OAAO,gDAAwB;","names":["import_playwright_base","playwrightTest","playwrightExpect"]}
package/dist/index.d.mts CHANGED
@@ -1,27 +1,31 @@
1
1
  import "@stablyai/playwright-base";
2
2
  import * as _stablyai_playwright_base from '@stablyai/playwright-base';
3
- export { setApiKey } from '@stablyai/playwright-base';
4
- import * as _stablyai_internal_playwright_test from '@stablyai/internal-playwright-test';
5
- import { test as test$1 } from '@stablyai/internal-playwright-test';
6
- export * from '@stablyai/internal-playwright-test';
7
- export { defineStablyConfig } from '@stablyai/internal-playwright-test';
3
+ import { Agent } from '@stablyai/playwright-base';
4
+ export { Agent, setApiKey } from '@stablyai/playwright-base';
5
+ import * as _playwright_test from '@playwright/test';
6
+ import { test as test$1 } from '@playwright/test';
7
+ export * from '@playwright/test';
8
+ export { stablyReporter } from '@stablyai/playwright-reporter';
8
9
 
9
10
  declare const test: typeof test$1;
10
- declare const expect: _stablyai_internal_playwright_test.Expect<{
11
+ declare const expect: _playwright_test.Expect<{
11
12
  readonly toMatchScreenshotPrompt: (this: {
12
13
  isNot: boolean;
13
14
  message?: () => string;
14
- }, received: _stablyai_internal_playwright_test.Page | _stablyai_internal_playwright_test.Locator, condition: string, options?: _stablyai_playwright_base.ScreenshotPromptOptions) => Promise<_stablyai_internal_playwright_test.MatcherReturnType>;
15
+ }, received: _playwright_test.Page | _playwright_test.Locator, condition: string, options?: _stablyai_playwright_base.ScreenshotPromptOptions) => Promise<_playwright_test.MatcherReturnType>;
15
16
  }>;
16
17
 
17
- declare module "@stablyai/internal-playwright-test" {
18
- type ScreenshotPromptOptions = _stablyai_internal_playwright_test.PageAssertionsToHaveScreenshotOptions;
18
+ declare module "@playwright/test" {
19
+ type ScreenshotPromptOptions = _playwright_test.PageAssertionsToHaveScreenshotOptions;
19
20
  interface LocatorAssertions {
20
21
  toMatchScreenshotPrompt(condition: string, options?: ScreenshotPromptOptions): Promise<void>;
21
22
  }
22
23
  interface PageAssertions {
23
24
  toMatchScreenshotPrompt(condition: string, options?: ScreenshotPromptOptions): Promise<void>;
24
25
  }
26
+ interface PlaywrightTestArgs {
27
+ agent: Agent;
28
+ }
25
29
  }
26
30
 
27
31
  export { expect, test };
package/dist/index.d.ts CHANGED
@@ -1,27 +1,31 @@
1
1
  import "@stablyai/playwright-base";
2
2
  import * as _stablyai_playwright_base from '@stablyai/playwright-base';
3
- export { setApiKey } from '@stablyai/playwright-base';
4
- import * as _stablyai_internal_playwright_test from '@stablyai/internal-playwright-test';
5
- import { test as test$1 } from '@stablyai/internal-playwright-test';
6
- export * from '@stablyai/internal-playwright-test';
7
- export { defineStablyConfig } from '@stablyai/internal-playwright-test';
3
+ import { Agent } from '@stablyai/playwright-base';
4
+ export { Agent, setApiKey } from '@stablyai/playwright-base';
5
+ import * as _playwright_test from '@playwright/test';
6
+ import { test as test$1 } from '@playwright/test';
7
+ export * from '@playwright/test';
8
+ export { stablyReporter } from '@stablyai/playwright-reporter';
8
9
 
9
10
  declare const test: typeof test$1;
10
- declare const expect: _stablyai_internal_playwright_test.Expect<{
11
+ declare const expect: _playwright_test.Expect<{
11
12
  readonly toMatchScreenshotPrompt: (this: {
12
13
  isNot: boolean;
13
14
  message?: () => string;
14
- }, received: _stablyai_internal_playwright_test.Page | _stablyai_internal_playwright_test.Locator, condition: string, options?: _stablyai_playwright_base.ScreenshotPromptOptions) => Promise<_stablyai_internal_playwright_test.MatcherReturnType>;
15
+ }, received: _playwright_test.Page | _playwright_test.Locator, condition: string, options?: _stablyai_playwright_base.ScreenshotPromptOptions) => Promise<_playwright_test.MatcherReturnType>;
15
16
  }>;
16
17
 
17
- declare module "@stablyai/internal-playwright-test" {
18
- type ScreenshotPromptOptions = _stablyai_internal_playwright_test.PageAssertionsToHaveScreenshotOptions;
18
+ declare module "@playwright/test" {
19
+ type ScreenshotPromptOptions = _playwright_test.PageAssertionsToHaveScreenshotOptions;
19
20
  interface LocatorAssertions {
20
21
  toMatchScreenshotPrompt(condition: string, options?: ScreenshotPromptOptions): Promise<void>;
21
22
  }
22
23
  interface PageAssertions {
23
24
  toMatchScreenshotPrompt(condition: string, options?: ScreenshotPromptOptions): Promise<void>;
24
25
  }
26
+ interface PlaywrightTestArgs {
27
+ agent: Agent;
28
+ }
25
29
  }
26
30
 
27
31
  export { expect, test };
package/dist/index.mjs CHANGED
@@ -1,19 +1,23 @@
1
1
  // src/index.ts
2
- import "@stablyai/playwright-base";
3
2
  import {
4
3
  expect as playwrightExpect,
5
4
  test as playwrightTest
6
- } from "@stablyai/internal-playwright-test";
7
- import { defineStablyConfig } from "@stablyai/internal-playwright-test";
5
+ } from "@playwright/test";
6
+ import "@stablyai/playwright-base";
8
7
  import {
9
8
  augmentBrowser,
10
9
  augmentBrowserContext,
11
10
  augmentPage,
12
11
  stablyPlaywrightMatchers
13
12
  } from "@stablyai/playwright-base";
14
- import { setApiKey } from "@stablyai/playwright-base";
15
- export * from "@stablyai/internal-playwright-test";
13
+ import { stablyReporter } from "@stablyai/playwright-reporter";
14
+ import { Agent, setApiKey } from "@stablyai/playwright-base";
15
+ export * from "@playwright/test";
16
16
  var test = playwrightTest.extend({
17
+ agent: async ({ context }, use) => {
18
+ const agent = context.newAgent();
19
+ await use(agent);
20
+ },
17
21
  browser: async ({ browser }, use) => {
18
22
  await use(augmentBrowser(browser));
19
23
  },
@@ -26,9 +30,10 @@ var test = playwrightTest.extend({
26
30
  });
27
31
  var expect = playwrightExpect.extend(stablyPlaywrightMatchers);
28
32
  export {
29
- defineStablyConfig,
33
+ Agent,
30
34
  expect,
31
35
  setApiKey,
36
+ stablyReporter,
32
37
  test
33
38
  };
34
39
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport {\n expect as playwrightExpect,\n test as playwrightTest,\n} from \"@stablyai/internal-playwright-test\";\n\n// not sure why this is required\nexport { defineStablyConfig } from \"@stablyai/internal-playwright-test\";\n\nimport {\n augmentBrowser,\n augmentBrowserContext,\n augmentPage,\n stablyPlaywrightMatchers,\n} from \"@stablyai/playwright-base\";\n\nexport { setApiKey } from \"@stablyai/playwright-base\";\n\nexport const test: typeof playwrightTest = playwrightTest.extend({\n browser: async ({ browser }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowser(browser as any) as any);\n },\n context: async ({ context }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowserContext(context as any) as any);\n },\n page: async ({ page }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentPage(page as any) as any);\n },\n});\n\nexport const expect = playwrightExpect.extend(stablyPlaywrightMatchers);\n\nexport * from \"@stablyai/internal-playwright-test\";\n\ndeclare module \"@stablyai/internal-playwright-test\" {\n export type ScreenshotPromptOptions =\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n import(\"@stablyai/internal-playwright-test\").PageAssertionsToHaveScreenshotOptions;\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface LocatorAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface PageAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n}\n"],"mappings":";AAAA,OAAO;AACP;AAAA,EACE,UAAU;AAAA,EACV,QAAQ;AAAA,OACH;AAGP,SAAS,0BAA0B;AAEnC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,iBAAiB;AAmB1B,cAAc;AAjBP,IAAM,OAA8B,eAAe,OAAO;AAAA,EAC/D,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,IAAI,eAAe,OAAc,CAAQ;AAAA,EACjD;AAAA,EACA,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,IAAI,sBAAsB,OAAc,CAAQ;AAAA,EACxD;AAAA,EACA,MAAM,OAAO,EAAE,KAAK,GAAG,QAAQ;AAE7B,UAAM,IAAI,YAAY,IAAW,CAAQ;AAAA,EAC3C;AACF,CAAC;AAEM,IAAM,SAAS,iBAAiB,OAAO,wBAAwB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { BrowserContext } from \"@playwright/test\";\nimport {\n expect as playwrightExpect,\n test as playwrightTest,\n} from \"@playwright/test\";\nimport \"@stablyai/playwright-base\";\n\nimport type { Agent } from \"@stablyai/playwright-base\";\nimport {\n augmentBrowser,\n augmentBrowserContext,\n augmentPage,\n stablyPlaywrightMatchers,\n} from \"@stablyai/playwright-base\";\n\nexport { stablyReporter } from \"@stablyai/playwright-reporter\";\nexport { Agent, setApiKey } from \"@stablyai/playwright-base\";\n\nexport const test: typeof playwrightTest = playwrightTest.extend<{\n agent: Agent;\n}>({\n agent: async (\n { context }: { context: BrowserContext },\n use: (agent: Agent) => Promise<void>,\n ) => {\n // Create a default agent from the default context\n const agent = context.newAgent();\n await use(agent);\n },\n browser: async ({ browser }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowser(browser as any) as any);\n },\n context: async ({ context }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentBrowserContext(context as any) as any);\n },\n page: async ({ page }, use) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n await use(augmentPage(page as any) as any);\n },\n});\n\nexport const expect = playwrightExpect.extend(stablyPlaywrightMatchers);\n\nexport * from \"@playwright/test\";\n\ndeclare module \"@playwright/test\" {\n export type ScreenshotPromptOptions =\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n import(\"@playwright/test\").PageAssertionsToHaveScreenshotOptions;\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface LocatorAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface PageAssertions {\n toMatchScreenshotPrompt(\n condition: string,\n options?: ScreenshotPromptOptions,\n ): Promise<void>;\n }\n\n // Add agent fixture to test args\n // eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n interface PlaywrightTestArgs {\n agent: Agent;\n }\n}\n"],"mappings":";AACA;AAAA,EACE,UAAU;AAAA,EACV,QAAQ;AAAA,OACH;AACP,OAAO;AAGP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,sBAAsB;AAC/B,SAAS,OAAO,iBAAiB;AA6BjC,cAAc;AA3BP,IAAM,OAA8B,eAAe,OAEvD;AAAA,EACD,OAAO,OACL,EAAE,QAAQ,GACV,QACG;AAEH,UAAM,QAAQ,QAAQ,SAAS;AAC/B,UAAM,IAAI,KAAK;AAAA,EACjB;AAAA,EACA,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,IAAI,eAAe,OAAc,CAAQ;AAAA,EACjD;AAAA,EACA,SAAS,OAAO,EAAE,QAAQ,GAAG,QAAQ;AAEnC,UAAM,IAAI,sBAAsB,OAAc,CAAQ;AAAA,EACxD;AAAA,EACA,MAAM,OAAO,EAAE,KAAK,GAAG,QAAQ;AAE7B,UAAM,IAAI,YAAY,IAAW,CAAQ;AAAA,EAC3C;AACF,CAAC;AAEM,IAAM,SAAS,iBAAiB,OAAO,wBAAwB;","names":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/reporter.ts
31
+ var reporter_exports = {};
32
+ __export(reporter_exports, {
33
+ default: () => reporter_default
34
+ });
35
+ module.exports = __toCommonJS(reporter_exports);
36
+ var import_playwright_reporter = __toESM(require("@stablyai/playwright-reporter"));
37
+ var reporter_default = import_playwright_reporter.default;
38
+ //# sourceMappingURL=reporter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/reporter.ts"],"sourcesContent":["import StablyReporter from \"@stablyai/playwright-reporter\";\n\nexport default StablyReporter;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAA2B;AAE3B,IAAO,mBAAQ,2BAAAA;","names":["StablyReporter"]}
@@ -0,0 +1,3 @@
1
+ import "@stablyai/playwright-base";
2
+ import StablyReporter from '@stablyai/playwright-reporter';
3
+ export { default } from '@stablyai/playwright-reporter';
@@ -0,0 +1,3 @@
1
+ import "@stablyai/playwright-base";
2
+ import StablyReporter from '@stablyai/playwright-reporter';
3
+ export { default } from '@stablyai/playwright-reporter';
@@ -0,0 +1,7 @@
1
+ // src/reporter.ts
2
+ import StablyReporter from "@stablyai/playwright-reporter";
3
+ var reporter_default = StablyReporter;
4
+ export {
5
+ reporter_default as default
6
+ };
7
+ //# sourceMappingURL=reporter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/reporter.ts"],"sourcesContent":["import StablyReporter from \"@stablyai/playwright-reporter\";\n\nexport default StablyReporter;\n"],"mappings":";AAAA,OAAO,oBAAoB;AAE3B,IAAO,mBAAQ;","names":[]}
package/package.json CHANGED
@@ -1,27 +1,32 @@
1
1
  {
2
2
  "name": "@stablyai/playwright-test",
3
- "version": "0.2.0-next.1",
3
+ "version": "1.0.0-next.1",
4
4
  "description": "Playwright Test wrapper with Stably AI matchers",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "exports": {
8
8
  ".": {
9
+ "types": "./dist/index.d.mts",
9
10
  "import": "./dist/index.mjs",
10
11
  "require": "./dist/index.cjs"
12
+ },
13
+ "./reporter": {
14
+ "types": "./dist/reporter.d.ts",
15
+ "import": "./dist/reporter.mjs",
16
+ "require": "./dist/reporter.cjs"
11
17
  }
12
18
  },
13
19
  "types": "dist/index.d.ts",
14
- "bin": {
15
- "playwright": "cli.js"
16
- },
17
20
  "files": [
18
- "dist",
19
- "cli.js"
21
+ "dist"
20
22
  ],
21
23
  "dependencies": {
22
- "@stablyai/internal-playwright-test": "0.1.18",
23
- "@stablyai/playwright": "0.2.0-next.1",
24
- "@stablyai/playwright-base": "0.2.0-next.1"
24
+ "@stablyai/playwright": "1.0.0-next.1",
25
+ "@stablyai/playwright-base": "1.0.0-next.1",
26
+ "@stablyai/playwright-reporter": "1.1.2"
27
+ },
28
+ "peerDependencies": {
29
+ "@playwright/test": "^1.52.0"
25
30
  },
26
31
  "scripts": {
27
32
  "build": "tsup",
package/cli.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { program } = require("@stablyai/internal-playwright-test");
4
- program.parse(process.argv);