shiplightai 0.1.83 → 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/index.d.ts CHANGED
@@ -12,7 +12,12 @@ export { configureSdk } from './config.js';
12
12
  */
13
13
 
14
14
  interface ShiplightOptions {
15
- /** Directory to scan for .test.yaml files (defaults to cwd) */
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