rwsdk 0.0.82 → 0.0.83-test.20250513045342
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/lib/smokeTests/browser.d.mts +17 -7
- package/dist/lib/smokeTests/browser.mjs +443 -69
- package/dist/lib/smokeTests/cleanup.mjs +6 -2
- package/dist/lib/smokeTests/codeUpdates.d.mts +8 -0
- package/dist/lib/smokeTests/codeUpdates.mjs +229 -0
- package/dist/lib/smokeTests/components.d.mts +4 -0
- package/dist/lib/smokeTests/components.mjs +142 -0
- package/dist/lib/smokeTests/development.d.mts +1 -1
- package/dist/lib/smokeTests/development.mjs +6 -2
- package/dist/lib/smokeTests/environment.mjs +1 -1
- package/dist/lib/smokeTests/release.d.mts +1 -1
- package/dist/lib/smokeTests/release.mjs +3 -2
- package/dist/lib/smokeTests/reporting.mjs +61 -4
- package/dist/lib/smokeTests/runSmokeTests.mjs +2 -2
- package/dist/lib/smokeTests/state.d.mts +12 -0
- package/dist/lib/smokeTests/state.mjs +14 -0
- package/dist/lib/smokeTests/templates/SmokeTest.template.js +19 -13
- package/dist/lib/smokeTests/templates/SmokeTestClient.template.js +19 -6
- package/dist/lib/smokeTests/templates/SmokeTestInfo.template.d.ts +1 -0
- package/dist/lib/smokeTests/templates/SmokeTestInfo.template.js +82 -0
- package/dist/lib/smokeTests/templates/smokeTestFunctions.template.js +11 -3
- package/dist/lib/smokeTests/types.d.mts +32 -0
- package/dist/runtime/worker.js +1 -1
- package/dist/scripts/smoke-test.mjs +5 -0
- package/dist/vite/checkIsUsingPrisma.d.mts +7 -0
- package/dist/vite/checkIsUsingPrisma.mjs +24 -3
- package/dist/vite/configPlugin.d.mts +3 -2
- package/dist/vite/configPlugin.mjs +4 -3
- package/dist/vite/redwoodPlugin.mjs +4 -4
- package/package.json +3 -2
|
@@ -11,22 +11,22 @@ export declare function getBrowserPath(testOptions?: SmokeTestOptions): Promise<
|
|
|
11
11
|
/**
|
|
12
12
|
* Check a URL by performing smoke tests and realtime upgrade
|
|
13
13
|
*/
|
|
14
|
-
export declare function checkUrl(url: string, artifactDir: string, browserPath?: string, headless?: boolean, bail?: boolean, skipClient?: boolean, environment?: string,
|
|
15
|
-
realtime?: boolean): Promise<void>;
|
|
14
|
+
export declare function checkUrl(url: string, artifactDir: string, browserPath?: string, headless?: boolean, bail?: boolean, skipClient?: boolean, environment?: string, realtime?: boolean, targetDir?: string, skipHmr?: boolean): Promise<void>;
|
|
16
15
|
/**
|
|
17
16
|
* Check smoke test status for a specific URL
|
|
18
17
|
*/
|
|
19
|
-
export declare function checkUrlSmoke(page: Page, url: string, isRealtime: boolean, bail
|
|
18
|
+
export declare function checkUrlSmoke(page: Page, url: string, isRealtime: boolean, bail: boolean | undefined, skipClient: boolean | undefined, environment: string | undefined, timestampState: {
|
|
19
|
+
initialServerValue: number;
|
|
20
|
+
clientUpdatedValue: number | null;
|
|
21
|
+
}, targetDir?: string, skipHmr?: boolean): Promise<void>;
|
|
20
22
|
/**
|
|
21
23
|
* Check server-side smoke test status
|
|
22
24
|
*/
|
|
23
|
-
export declare function checkServerSmoke(page: Page, phase?: string, environment?: string,
|
|
24
|
-
bail?: boolean): Promise<SmokeTestResult>;
|
|
25
|
+
export declare function checkServerSmoke(page: Page, phase?: string, environment?: string, bail?: boolean, expectedTimestamp?: number, isServerRenderCheck?: boolean): Promise<SmokeTestResult>;
|
|
25
26
|
/**
|
|
26
27
|
* Check client-side smoke test if refresh button is available
|
|
27
28
|
*/
|
|
28
|
-
export declare function checkClientSmoke(page: Page, phase?: string, environment?: string,
|
|
29
|
-
bail?: boolean): Promise<SmokeTestResult | null>;
|
|
29
|
+
export declare function checkClientSmoke(page: Page, phase?: string, environment?: string, bail?: boolean): Promise<SmokeTestResult | null>;
|
|
30
30
|
/**
|
|
31
31
|
* Upgrade to realtime mode
|
|
32
32
|
*/
|
|
@@ -36,3 +36,13 @@ bail?: boolean): Promise<void>;
|
|
|
36
36
|
* DRY: checkServerUp now checks both root and custom path if needed
|
|
37
37
|
*/
|
|
38
38
|
export declare function checkServerUp(baseUrl: string, customPath?: string, retries?: number, bail?: boolean): Promise<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* HMR test for server component
|
|
41
|
+
* Updates the server component and verifies that HMR applies the changes
|
|
42
|
+
*/
|
|
43
|
+
export declare function testServerComponentHmr(page: Page, targetDir: string, phase?: string, environment?: string, bail?: boolean): Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* HMR test for client component
|
|
46
|
+
* Updates the client component and verifies that HMR applies the changes
|
|
47
|
+
*/
|
|
48
|
+
export declare function testClientComponentHmr(page: Page, targetDir: string, phase?: string, environment?: string, bail?: boolean): Promise<boolean>;
|