shiplightai 0.1.72 → 0.1.73
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 +48 -48
- package/dist/cjs/fixture.cjs +44 -44
- package/dist/cjs/index.cjs +61 -61
- package/dist/cjs/reporter.cjs +12 -12
- package/dist/cli.js +77 -77
- package/dist/debugger-pw.js +36 -36
- package/dist/fixture.d.ts +20 -1
- package/dist/fixture.js +26 -26
- package/dist/index.js +59 -59
- package/dist/reporter.js +13 -13
- package/package.json +3 -3
package/dist/fixture.d.ts
CHANGED
|
@@ -46,6 +46,25 @@ interface TestContext {
|
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
}
|
|
48
48
|
declare function createTestContext(variableStore: VariableStore): TestContext;
|
|
49
|
+
/**
|
|
50
|
+
* Parse the `SHIPLIGHT_VARS_OVERRIDE` env var.
|
|
51
|
+
* Returns null when unset, throws on invalid JSON or non-string values.
|
|
52
|
+
*/
|
|
53
|
+
declare function parseVarsOverrideEnv(raw: string | undefined): Record<string, string> | null;
|
|
54
|
+
/**
|
|
55
|
+
* Check whether a key was declared `sensitive: true` in the resolved
|
|
56
|
+
* `use.variables` declarations. Test-level overrides project-level.
|
|
57
|
+
*/
|
|
58
|
+
declare function isDeclaredSensitive(key: string, projectVariables: ShiplightUseOptions['variables'], testVariables: ShiplightUseOptions['variables']): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Apply CLI / env overrides (`SHIPLIGHT_VARS_OVERRIDE`) to the variable store
|
|
61
|
+
* with highest priority. Sensitivity is inherited from whichever declaration
|
|
62
|
+
* the key already has in project/test `use.variables`; undeclared keys are
|
|
63
|
+
* stored as non-sensitive.
|
|
64
|
+
*
|
|
65
|
+
* Exported for testing.
|
|
66
|
+
*/
|
|
67
|
+
declare function applyVarsOverride(variableStore: VariableStore, projectVariables: ShiplightUseOptions['variables'], testVariables: ShiplightUseOptions['variables'], envVar?: string | undefined): void;
|
|
49
68
|
/**
|
|
50
69
|
* Explicit allowlist of environment variable names that Shiplight forwards
|
|
51
70
|
* into sdk-core's internal `SdkConfig.env`. sdk-core is strict — it reads
|
|
@@ -99,4 +118,4 @@ type ShiplightFixtures = {
|
|
|
99
118
|
};
|
|
100
119
|
declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & ShiplightFixtures, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
|
|
101
120
|
|
|
102
|
-
export { type AuthSpec, SDK_ENV_ALLOWLIST, type TestContext, buildSdkEnv, createTestContext, resolveAuthState, test };
|
|
121
|
+
export { type AuthSpec, SDK_ENV_ALLOWLIST, type TestContext, applyVarsOverride, buildSdkEnv, createTestContext, isDeclaredSensitive, parseVarsOverrideEnv, resolveAuthState, test };
|