Skip to content

Commit 8bae696

Browse files
committed
TS support for cypress
1 parent 8df6867 commit 8bae696

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

packages/cypress/package.json

Lines changed: 1 addition & 0 deletions
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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}
15+
16+
export {};

0 commit comments

Comments
 (0)