@checksum-ai/runtime 4.12.0 → 4.13.1-beta.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/helpers.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Page } from "@playwright/test";
1
+ import { type Page } from "@playwright/test";
2
2
 
3
3
  export async function simulateDate(datetime: string, page: Page) {
4
4
  const simulatedDate = new Date(datetime).valueOf();
package/index.d.ts CHANGED
@@ -427,9 +427,13 @@ interface DefineChecksumIdMethod {
427
427
  /**
428
428
  * Initialize Checksum runtime
429
429
  *
430
- * @param base
430
+ * @param base Optional Playwright test object to extend
431
+ * @param config Optional checksum config (defaults to loading checksum.config.ts)
431
432
  */
432
- export function init(base?: ChecksumTestType<PlaywrightTestArgs>): {
433
+ export function init(
434
+ base?: ChecksumTestType<PlaywrightTestArgs>,
435
+ config?: ChecksumConfig
436
+ ): {
433
437
  test: ChecksumTestType<ChecksumPlaywrightTestArgs>;
434
438
  login: ReturnType<typeof getLogin>;
435
439
  defineChecksumTest: DefineChecksumIdMethod;