astro-better-declarative-screenshots 0.2.0 → 0.2.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/package.json +1 -1
- package/src/config.mjs +3 -3
package/package.json
CHANGED
package/src/config.mjs
CHANGED
|
@@ -82,13 +82,13 @@ const ConfigSchema = z.object({
|
|
|
82
82
|
strict: z.boolean().default(process.env.SCREENSHOTS_STRICT === 'true'),
|
|
83
83
|
|
|
84
84
|
// called once before all screenshots are taken (good for login flows)
|
|
85
|
-
beforeAll: z.function().
|
|
85
|
+
beforeAll: z.function().optional(),
|
|
86
86
|
|
|
87
87
|
// called before each individual screenshot
|
|
88
|
-
beforeScreenshot: z.function().
|
|
88
|
+
beforeScreenshot: z.function().optional(),
|
|
89
89
|
|
|
90
90
|
// called once after all screenshots are taken
|
|
91
|
-
afterAll: z.function().
|
|
91
|
+
afterAll: z.function().optional(),
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
export async function loadConfig(projectRoot) {
|