@inboxical/cypress 0.1.0
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/LICENSE +21 -0
- package/README.md +81 -0
- package/dist/commands.d.ts +66 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +28 -0
- package/dist/commands.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +70 -0
- package/dist/index.js.map +1 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ozer SUBASI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# @inboxical/cypress
|
|
2
|
+
|
|
3
|
+
[Inboxical](https://inboxical.com) plugin for [Cypress](https://www.cypress.io/) — test email flows in your E2E tests.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @inboxical/cypress @inboxical/sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
### 1. Register tasks in `cypress.config.ts`
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { defineConfig } from "cypress";
|
|
17
|
+
import { setupInboxical } from "@inboxical/cypress";
|
|
18
|
+
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
e2e: {
|
|
21
|
+
setupNodeEvents(on, config) {
|
|
22
|
+
setupInboxical(on, config, {
|
|
23
|
+
apiKey: process.env.INBOXICAL_API_KEY,
|
|
24
|
+
});
|
|
25
|
+
return config;
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 2. Import commands in `cypress/support/commands.ts`
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import "@inboxical/cypress/commands";
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
describe("Email verification", () => {
|
|
41
|
+
it("should verify email with OTP", () => {
|
|
42
|
+
cy.inboxicalCreateInbox().then(({ id, email }) => {
|
|
43
|
+
cy.visit("/signup");
|
|
44
|
+
cy.get("#email").type(email);
|
|
45
|
+
cy.get("form").submit();
|
|
46
|
+
|
|
47
|
+
cy.inboxicalWaitForMessage(id, { timeout: 30 }).then((message) => {
|
|
48
|
+
expect(message.subject).to.include("Verify");
|
|
49
|
+
|
|
50
|
+
cy.inboxicalExtractCode(message).then((code) => {
|
|
51
|
+
cy.get("#otp-input").type(code);
|
|
52
|
+
cy.get("#verify-btn").click();
|
|
53
|
+
cy.contains("Welcome").should("be.visible");
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
cy.inboxicalDeleteInbox(id);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Commands
|
|
64
|
+
|
|
65
|
+
| Command | Description |
|
|
66
|
+
|---------|-------------|
|
|
67
|
+
| `cy.inboxicalCreateInbox(options?)` | Create a disposable test inbox |
|
|
68
|
+
| `cy.inboxicalWaitForMessage(inboxId, options?)` | Wait for a message (long-poll) |
|
|
69
|
+
| `cy.inboxicalGetMessages(inboxId)` | Get all messages in inbox |
|
|
70
|
+
| `cy.inboxicalGetLatestMessage(inboxId)` | Get the latest message |
|
|
71
|
+
| `cy.inboxicalDeleteInbox(inboxId)` | Delete inbox and messages |
|
|
72
|
+
| `cy.inboxicalExtractCode(message, pattern?)` | Extract OTP/verification code |
|
|
73
|
+
|
|
74
|
+
## Related
|
|
75
|
+
|
|
76
|
+
- [`@inboxical/sdk`](https://github.com/ozers/inboxical-sdk) — Core Node.js SDK
|
|
77
|
+
- [`@inboxical/playwright`](https://github.com/ozers/inboxical-playwright) — Playwright helper
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
MIT
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Message } from "@inboxical/sdk";
|
|
2
|
+
/**
|
|
3
|
+
* Type declarations for Inboxical Cypress custom commands.
|
|
4
|
+
*/
|
|
5
|
+
declare global {
|
|
6
|
+
namespace Cypress {
|
|
7
|
+
interface Chainable {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new Inboxical test inbox.
|
|
10
|
+
* @returns Object with `id` and `email` properties.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* cy.inboxicalCreateInbox().then(({ id, email }) => {
|
|
15
|
+
* cy.get("#email-input").type(email);
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
inboxicalCreateInbox(options?: {
|
|
20
|
+
name?: string;
|
|
21
|
+
domain?: string;
|
|
22
|
+
}): Chainable<{
|
|
23
|
+
id: string;
|
|
24
|
+
email: string;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Wait for a message to arrive in the inbox (long-poll).
|
|
28
|
+
* @param inboxId - The inbox ID to watch.
|
|
29
|
+
* @param options - Optional timeout (seconds) and since (ISO date).
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* cy.inboxicalWaitForMessage(inboxId, { timeout: 30 }).then((msg) => {
|
|
34
|
+
* expect(msg.subject).to.include("Verify");
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
inboxicalWaitForMessage(inboxId: string, options?: {
|
|
39
|
+
timeout?: number;
|
|
40
|
+
since?: string;
|
|
41
|
+
}): Chainable<Message>;
|
|
42
|
+
/**
|
|
43
|
+
* Get all messages in an inbox.
|
|
44
|
+
* @param inboxId - The inbox ID.
|
|
45
|
+
*/
|
|
46
|
+
inboxicalGetMessages(inboxId: string): Chainable<Message[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Get the latest message in an inbox.
|
|
49
|
+
* @param inboxId - The inbox ID.
|
|
50
|
+
*/
|
|
51
|
+
inboxicalGetLatestMessage(inboxId: string): Chainable<Message>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete a Inboxical test inbox and all its messages.
|
|
54
|
+
* @param inboxId - The inbox ID to delete.
|
|
55
|
+
*/
|
|
56
|
+
inboxicalDeleteInbox(inboxId: string): Chainable<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Extract an OTP/verification code from a message.
|
|
59
|
+
* @param message - The message to extract from.
|
|
60
|
+
* @param pattern - Optional regex pattern string (must contain a capture group).
|
|
61
|
+
*/
|
|
62
|
+
inboxicalExtractCode(message: Message, pattern?: string): Chainable<string | null>;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,OAAO,CAAC;QAChB,UAAU,SAAS;YACjB;;;;;;;;;;eAUG;YACH,oBAAoB,CAAC,OAAO,CAAC,EAAE;gBAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;gBACd,MAAM,CAAC,EAAE,MAAM,CAAC;aACjB,GAAG,SAAS,CAAC;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;YAE7C;;;;;;;;;;;eAWG;YACH,uBAAuB,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;gBAAE,OAAO,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE,GAC7C,SAAS,CAAC,OAAO,CAAC,CAAC;YAEtB;;;eAGG;YACH,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;YAE5D;;;eAGG;YACH,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;YAE/D;;;eAGG;YACH,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;YAEvD;;;;eAIG;YACH,oBAAoB,CAClB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,MAAM,GACf,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;SAC7B;KACF;CACF"}
|
package/dist/commands.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Inboxical custom commands.
|
|
3
|
+
*
|
|
4
|
+
* Import this file in your `cypress/support/commands.ts`:
|
|
5
|
+
* ```ts
|
|
6
|
+
* import "@inboxical/cypress/commands";
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
Cypress.Commands.add("inboxicalCreateInbox", (options) => {
|
|
10
|
+
return cy.task("inboxicalCreateInbox", options ?? null);
|
|
11
|
+
});
|
|
12
|
+
Cypress.Commands.add("inboxicalWaitForMessage", (inboxId, options) => {
|
|
13
|
+
return cy.task("inboxicalWaitForMessage", { inboxId, ...options }, { timeout: ((options?.timeout ?? 30) + 10) * 1000 });
|
|
14
|
+
});
|
|
15
|
+
Cypress.Commands.add("inboxicalGetMessages", (inboxId) => {
|
|
16
|
+
return cy.task("inboxicalGetMessages", inboxId);
|
|
17
|
+
});
|
|
18
|
+
Cypress.Commands.add("inboxicalGetLatestMessage", (inboxId) => {
|
|
19
|
+
return cy.task("inboxicalGetLatestMessage", inboxId);
|
|
20
|
+
});
|
|
21
|
+
Cypress.Commands.add("inboxicalDeleteInbox", (inboxId) => {
|
|
22
|
+
return cy.task("inboxicalDeleteInbox", inboxId);
|
|
23
|
+
});
|
|
24
|
+
Cypress.Commands.add("inboxicalExtractCode", (message, pattern) => {
|
|
25
|
+
return cy.task("inboxicalExtractCode", { message, pattern });
|
|
26
|
+
});
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAwEA;;;;;;;GAOG;AACH,OAAO,CAAC,QAAQ,CAAC,GAAG,CAClB,sBAAsB,EACtB,CAAC,OAA4C,EAAE,EAAE;IAC/C,OAAO,EAAE,CAAC,IAAI,CAAC,sBAAsB,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC;AAC1D,CAAC,CACF,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Inboxical API key. Defaults to INBOXICAL_API_KEY env var. */
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
/** Base URL override. */
|
|
7
|
+
baseUrl?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Register Inboxical tasks in your Cypress config file.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // cypress.config.ts
|
|
15
|
+
* import { defineConfig } from "cypress";
|
|
16
|
+
* import { setupInboxical } from "@inboxical/cypress";
|
|
17
|
+
*
|
|
18
|
+
* export default defineConfig({
|
|
19
|
+
* e2e: {
|
|
20
|
+
* setupNodeEvents(on, config) {
|
|
21
|
+
* setupInboxical(on, config, {
|
|
22
|
+
* apiKey: process.env.INBOXICAL_API_KEY,
|
|
23
|
+
* });
|
|
24
|
+
* return config;
|
|
25
|
+
* },
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function setupInboxical(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions, options?: InboxicalCypressConfig): void;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAErD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAE/B,MAAM,WAAW,sBAAsB;IACrC,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,OAAO,CAAC,YAAY,EACxB,MAAM,EAAE,OAAO,CAAC,mBAAmB,EACnC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,IAAI,CAiEN"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Inboxical } from "@inboxical/sdk";
|
|
2
|
+
/**
|
|
3
|
+
* Register Inboxical tasks in your Cypress config file.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* // cypress.config.ts
|
|
8
|
+
* import { defineConfig } from "cypress";
|
|
9
|
+
* import { setupInboxical } from "@inboxical/cypress";
|
|
10
|
+
*
|
|
11
|
+
* export default defineConfig({
|
|
12
|
+
* e2e: {
|
|
13
|
+
* setupNodeEvents(on, config) {
|
|
14
|
+
* setupInboxical(on, config, {
|
|
15
|
+
* apiKey: process.env.INBOXICAL_API_KEY,
|
|
16
|
+
* });
|
|
17
|
+
* return config;
|
|
18
|
+
* },
|
|
19
|
+
* },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export function setupInboxical(on, config, options) {
|
|
24
|
+
const apiKey = options?.apiKey || config.env["INBOXICAL_API_KEY"] || process.env.INBOXICAL_API_KEY;
|
|
25
|
+
if (!apiKey) {
|
|
26
|
+
throw new Error("Inboxical API key is required. Set INBOXICAL_API_KEY env var or pass apiKey in options.");
|
|
27
|
+
}
|
|
28
|
+
const client = new Inboxical({
|
|
29
|
+
apiKey,
|
|
30
|
+
baseUrl: options?.baseUrl,
|
|
31
|
+
});
|
|
32
|
+
on("task", {
|
|
33
|
+
async inboxicalCreateInbox(args) {
|
|
34
|
+
const inbox = await client.createInbox(args ?? undefined);
|
|
35
|
+
return { id: inbox.id, email: inbox.email_address };
|
|
36
|
+
},
|
|
37
|
+
async inboxicalGetInbox(inboxId) {
|
|
38
|
+
return client.getInbox(inboxId);
|
|
39
|
+
},
|
|
40
|
+
async inboxicalDeleteInbox(inboxId) {
|
|
41
|
+
await client.deleteInbox(inboxId);
|
|
42
|
+
return null;
|
|
43
|
+
},
|
|
44
|
+
async inboxicalGetMessages(inboxId) {
|
|
45
|
+
const result = await client.getMessages(inboxId);
|
|
46
|
+
return result.messages;
|
|
47
|
+
},
|
|
48
|
+
async inboxicalGetLatestMessage(inboxId) {
|
|
49
|
+
return client.getLatestMessage(inboxId);
|
|
50
|
+
},
|
|
51
|
+
async inboxicalWaitForMessage(args) {
|
|
52
|
+
return client.waitForMessage(args.inboxId, {
|
|
53
|
+
timeout: args.timeout,
|
|
54
|
+
since: args.since,
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
async inboxicalGetMessage(messageId) {
|
|
58
|
+
return client.getMessage(messageId);
|
|
59
|
+
},
|
|
60
|
+
async inboxicalDeleteMessage(messageId) {
|
|
61
|
+
await client.deleteMessage(messageId);
|
|
62
|
+
return null;
|
|
63
|
+
},
|
|
64
|
+
inboxicalExtractCode(args) {
|
|
65
|
+
const patternRegex = args.pattern ? new RegExp(args.pattern) : undefined;
|
|
66
|
+
return client.extractCode(args.message, { pattern: patternRegex });
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAY3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,cAAc,CAC5B,EAAwB,EACxB,MAAmC,EACnC,OAAgC;IAEhC,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IAEnG,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,yFAAyF,CAC1F,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;QAC3B,MAAM;QACN,OAAO,EAAE,OAAO,EAAE,OAAO;KA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ClB,IAA4C;YAE5C,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzE,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;QACrE,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@inboxical/cypress",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Inboxical Cypress plugin — Email testing commands for Cypress",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./commands": {
|
|
14
|
+
"import": "./dist/commands.js",
|
|
15
|
+
"types": "./dist/commands.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"prepublishOnly": "npm run build"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"email",
|
|
27
|
+
"testing",
|
|
28
|
+
"cypress",
|
|
29
|
+
"qa",
|
|
30
|
+
"inbox",
|
|
31
|
+
"inboxical",
|
|
32
|
+
"e2e",
|
|
33
|
+
"otp"
|
|
34
|
+
],
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/ozers/inboxical-cypress.git"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://inboxical.com",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/ozers/inboxical-cypress/issues"
|
|
42
|
+
},
|
|
43
|
+
"author": "Inboxical",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"cypress": ">=12.0.0"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@inboxical/sdk": "^0.1.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^25.5.0",
|
|
53
|
+
"cypress": "^13.0.0",
|
|
54
|
+
"typescript": "^5.4.0"
|
|
55
|
+
}
|
|
56
|
+
}
|