shiplightai 0.1.84 → 0.1.85
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/cjs/debugger-pw.cjs +32 -32
- package/dist/cjs/fixture.cjs +66 -66
- package/dist/cjs/index.cjs +58 -58
- package/dist/cjs/reporter.cjs +2 -2
- package/dist/cli.js +79 -74
- package/dist/debugger-pw.js +34 -34
- package/dist/fixture.d.ts +22 -4
- package/dist/fixture.js +66 -66
- package/dist/index.d.ts +6 -18
- package/dist/index.js +58 -58
- package/dist/reporter.js +2 -2
- package/dist/static-embedded/assets/{index-DEDW0aC5.js → index-Bcj9zYt-.js} +68 -37
- package/dist/static-embedded/assets/{index-dPxSGq_T.js → index-CMdPZNG2.js} +2 -2
- package/dist/static-embedded/index.html +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,12 @@ export { configureSdk } from './config.js';
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
interface ShiplightOptions {
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Directory to scan for .test.yaml files. Defaults to SHIPLIGHT_PROJECT_ROOT
|
|
17
|
+
* (set by `shiplight test`, honoring -c/--config), else process.cwd(). When
|
|
18
|
+
* invoking `playwright test` directly with `-c` pointing at a config outside
|
|
19
|
+
* the cwd, pass scanDir explicitly to anchor the scan to your config directory.
|
|
20
|
+
*/
|
|
16
21
|
scanDir?: string;
|
|
17
22
|
/** Load .env file automatically (default: true). Set to false if you manage env vars yourself. */
|
|
18
23
|
dotenv?: boolean;
|
|
@@ -29,23 +34,6 @@ interface ShiplightUseOptions {
|
|
|
29
34
|
sensitive?: boolean;
|
|
30
35
|
}>;
|
|
31
36
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Transpile all .test.yaml files and return a partial Playwright config.
|
|
34
|
-
*
|
|
35
|
-
* Generated files use the `.yaml.spec.ts` extension, which is matched by
|
|
36
|
-
* Playwright's default `testMatch` pattern. If you override `testMatch` in
|
|
37
|
-
* your config, make sure it includes `*.yaml.spec.ts` (or `*.spec.ts`).
|
|
38
|
-
*
|
|
39
|
-
* Usage in playwright.config.ts:
|
|
40
|
-
* ```ts
|
|
41
|
-
* import { defineConfig, shiplightConfig } from 'shiplightai';
|
|
42
|
-
*
|
|
43
|
-
* export default defineConfig({
|
|
44
|
-
* ...shiplightConfig(),
|
|
45
|
-
* testDir: './tests',
|
|
46
|
-
* });
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
37
|
declare function shiplightConfig(options?: ShiplightOptions): PlaywrightTestConfig<ShiplightUseOptions>;
|
|
50
38
|
/**
|
|
51
39
|
* Typed wrapper around Playwright's `defineConfig` that understands Shiplight's
|