@trackunit/iris-app-e2e 1.0.5 → 1.0.8

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 CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-e2e",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
+ "generators": "./generators.json",
6
7
  "engines": {
7
8
  "node": ">=22.x"
8
9
  },
9
10
  "dependencies": {
10
11
  "@neuralegion/cypress-har-generator": "^5.17.0",
12
+ "@nx/cypress": "21.1.3",
13
+ "@nx/devkit": "21.1.3",
11
14
  "cypress-terminal-report": "7.0.3",
12
15
  "node-xlsx": "^0.23.0",
13
16
  "prettier": "^3.4.2",
14
- "@trackunit/react-test-setup": "1.0.38"
17
+ "@trackunit/react-test-setup": "1.0.40"
15
18
  },
16
19
  "module": "./index.esm.js",
17
20
  "main": "./index.cjs.js",
@@ -0,0 +1,28 @@
1
+ import { Tree } from "@nx/devkit";
2
+ import { E2eConfigurationGeneratorSchema } from "./schema";
3
+ /**
4
+ * Generates E2E test configuration for an existing project using Iris App E2E library.
5
+ *
6
+ * This generator sets up Cypress end-to-end testing infrastructure within an existing project,
7
+ * including configuration files, test targets, and template files that use the public
8
+ * iris-app-e2e library for cross-platform compatibility.
9
+ *
10
+ * @param tree - The NX virtual file system tree
11
+ * @param options - Configuration options for the generator
12
+ * @param options.project - The name of the project to add E2E configuration to
13
+ * @returns A function that logs completion message with the path to the generated test file
14
+ * @example
15
+ * ```bash
16
+ * nx generate @trackunit/iris-app-e2e:e2e-configuration --project my-app
17
+ * ```
18
+ *
19
+ * Generated structure:
20
+ * - cypress.config.ts - Main Cypress configuration using Iris App E2E
21
+ * - cypress/e2e/app.cy.ts - Sample test file
22
+ * - cypress/support/commands.ts - Custom commands setup
23
+ * - cypress/support/e2e.ts - Support file configuration
24
+ * - cypress/fixtures/auth.json - Authentication fixture template
25
+ * - Project targets for e2e and e2e-ui execution with multiple environment configurations
26
+ */
27
+ export declare function e2eConfigurationGenerator(tree: Tree, options: E2eConfigurationGeneratorSchema): Promise<() => Tree>;
28
+ export default e2eConfigurationGenerator;
@@ -0,0 +1,14 @@
1
+ import { Tree } from "@nx/devkit";
2
+ /**
3
+ *
4
+ * @param tree File system tree
5
+ * @param path Path to source file in the Tree
6
+ * @param updater Function that maps the current file content to a new to be written to the Tree
7
+ */
8
+ export declare const updateFileInTree: (tree: Tree, path: string, updater: (fileContent: string) => string) => void;
9
+ /**
10
+ *
11
+ * @param tree File system tree
12
+ * @param path Path to source file in the Tree
13
+ */
14
+ export declare const deleteFileInTree: (tree: Tree, path: string) => void;