Skip to content

Commit 220f6d7

Browse files
authoredApr 19, 2024
Merge pull request #36 from Shahnawaz-Sk/cypress-sdk
TS support for cypress
2 parents 8df6867 + af450ef commit 220f6d7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎packages/cypress/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.6",
44
"description": "Cypress driver for all Lambdatest functionalities",
55
"main": "index.js",
6+
"types": "types/index.d.ts",
67
"repository": {
78
"type": "git",
89
"url": "git+https://github.com/LambdaTest/lambdatest-js-sdk.git",

‎packages/cypress/types/index.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/// <reference types="cypress" />
2+
3+
declare global {
4+
namespace Cypress {
5+
interface Chainable<Subject = any> {
6+
/**
7+
* Captures a SmartUI snapshot.
8+
* @param name The name of the snapshot.
9+
* @param options Additional options for snapshot capture.
10+
*/
11+
smartuiSnapshot(name?: string, options?: object): Chainable<Subject>;
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)
Failed to load comments.