@m4l/testing 0.0.15 → 0.0.16

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.
@@ -1,5 +1,13 @@
1
- import { M4LGetCypressDataGridColumnsConfig } from './export';
2
1
  declare global {
2
+ export type M4LDataGridCypressColumn = {
3
+
4
+ key: string;
5
+ value: any;
6
+ headerText: string;
7
+ visible: boolean;
8
+ }
9
+ export type M4LGetCypressDataGridColumnsConfig<T> = (data: T) => M4LDataGridCypressColumn[];
10
+
3
11
  namespace Cypress {
4
12
  interface Chainable {
5
13
  /**
@@ -0,0 +1 @@
1
+
package/e2e/cypress.d.ts CHANGED
@@ -8,7 +8,6 @@
8
8
  /// <reference path="./commands/components/Tab/types.d.ts" />
9
9
  /// <reference path="./commands/intercepts/noPrivileges/types.d.ts" />
10
10
 
11
- export type { M4LGetCypressDataGridColumnsConfig , M4LDataGridCypressColumn } from './commands/components/DataGrid/export';
12
11
 
13
12
  declare global {
14
13
  namespace Cypress {
@@ -18,3 +17,5 @@ declare global {
18
17
  }
19
18
  }
20
19
  }
20
+
21
+ export {};
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './e2e/cypress.d';
1
2
  export * from './e2e/commands';
2
3
  export * from './testComponents';
3
4
  export * from './testTools';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/testing",
3
3
  "description": "Shared testing utilities for MFs",
4
- "version": "0.0.15",
4
+ "version": "0.0.16",
5
5
  "license": "UNLICENSED",
6
6
  "author": "M4L Team",
7
7
  "scripts": {
@@ -29,89 +29,78 @@
29
29
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
30
30
  },
31
31
  "dependencies": {
32
- "@storybook/addon-designs": "^8.0.3",
33
- "@storybook/addon-essentials": "^8.3.4",
34
- "@storybook/addon-interactions": "^8.3.4",
35
- "@storybook/addon-links": "^8.3.4",
32
+ "@storybook/addon-designs": "^8.0.0",
33
+ "@storybook/addon-essentials": "8.3.4",
34
+ "@storybook/addon-interactions": "8.3.4",
35
+ "@storybook/addon-links": "8.3.4",
36
36
  "@storybook/addon-onboarding": "^8.3.4",
37
37
  "@storybook/blocks": "^8.3.4",
38
- "@storybook/react": "^8.3.4",
39
- "@storybook/react-vite": "^8.3.4",
40
- "@storybook/test": "^8.3.4",
38
+ "@storybook/react": "8.3.4",
39
+ "@storybook/react-vite": "8.3.4",
40
+ "@storybook/test": "8.3.4",
41
41
  "@testing-library/dom": "^10.4.0",
42
42
  "@testing-library/jest-dom": "^6.5.0",
43
43
  "@testing-library/react": "^16.0.0",
44
44
  "@testing-library/react-hooks": "^8.0.1",
45
45
  "@testing-library/user-event": "^14.5.2",
46
- "@types/cypress": "^1.1.6",
47
46
  "@types/jest": "^29.5.10",
48
47
  "@vitejs/plugin-react": "^4.0.0",
49
48
  "@vitest/coverage-istanbul": "^3.1.1",
50
49
  "@vitest/coverage-v8": "^3.1.1",
51
50
  "@vitest/ui": "^3.1.1",
52
51
  "cypress": "^14.1.0",
53
- "cypress-vite": "^1.5.0",
52
+ "cypress-vite": "1.6.0",
54
53
  "happy-dom": "^17.1.9",
55
- "jest-environment-jsdom": "^29.7.0",
54
+ "jest-environment-jsdom": "29.7.0",
56
55
  "jsdom": "^25.0.1",
57
56
  "storybook": "^8.3.4"
58
57
  },
59
58
  "peerDependencies": {
60
- "@types/react": "^18.0.0",
61
- "react": "^18.0.0",
62
- "vitest": "^3.1.1"
59
+ "@types/react": "18.3.23",
60
+ "react": "18.3.1",
61
+ "vitest": "3.1.1"
63
62
  },
64
63
  "devDependencies": {
65
64
  "@m4l/components": "^9.0.0",
66
65
  "@m4l/config": "^1.1.2",
67
66
  "@m4l/vite-plugins": "^1.1.5",
68
67
  "@types/node": "^22.7.3",
69
- "@types/react": "^18.0.0",
70
- "@types/react-dom": "^18.0.0",
71
- "eslint": "^9.0.0",
72
- "lefthook": "^1.7.18",
73
- "lint-staged": "^15.2.10",
74
- "react": "^18.0.0",
75
- "react-dom": "^18.0.0",
76
- "typescript": "^5.4.5",
77
- "vite": "^6.3.5",
68
+ "@types/react": "18.3.23",
69
+ "@types/react-dom": "18.3.7",
70
+ "eslint": "9.28.0",
71
+ "lefthook": "1.11.13",
72
+ "lint-staged": "15.5.2",
73
+ "react": "18.3.1",
74
+ "react-dom": "18.3.1",
75
+ "typescript": "5.8.3",
76
+ "vite": "6.3.5",
78
77
  "vite-plugin-dts": "^4.2.1",
79
- "vitest": "^3.1.1"
78
+ "vitest": "3.1.1"
80
79
  },
81
80
  "resolutions": {
82
81
  "glob": "^10.4.5",
83
- "react": "^18.0.0",
84
- "@types/react": "^18.0.0",
85
- "@types/react-dom": "^18.0.0",
86
- "react-dom": "^18.0.0",
82
+ "react": "18.3.1",
83
+ "@types/react": "18.3.23",
84
+ "@types/react-dom": "18.3.7",
85
+ "react-dom": "18.3.1",
87
86
  "@vitejs/plugin-react": "^4.0.0"
88
87
  },
89
88
  "overrides": {
90
89
  "glob": "^10.4.5",
91
- "eslint": "^9.0.0",
92
- "react": "^18.0.0",
93
- "@types/react": "^18.0.0",
94
- "@types/react-dom": "^18.0.0",
95
- "react-dom": "^18.0.0"
90
+ "eslint": "9.28.0",
91
+ "react": "18.3.1",
92
+ "@types/react": "18.3.23",
93
+ "@types/react-dom": "18.3.7",
94
+ "react-dom": "18.3.1"
96
95
  },
97
96
  "files": [
98
97
  "*"
99
98
  ],
99
+ "type": "module",
100
100
  "source": "./index.js",
101
- "main": "src/index.ts",
101
+ "main": "./index.js",
102
102
  "module": "./index.js",
103
- "type": "module",
104
103
  "types": "./index.d.ts",
105
- "exports": {
106
- ".": {
107
- "types": "./index.d.ts",
108
- "import": "./index.js",
109
- "require": null
110
- },
111
- "./cypress": {
112
- "types": "./e2e/cypress.d.ts"
113
- }
114
- },
115
104
  "sideEffects": false,
116
105
  "publishConfig": {
117
106
  "access": "public"
@@ -1,7 +0,0 @@
1
- export type M4LDataGridCypressColumn = {
2
- key: string;
3
- value: any;
4
- headerText: string;
5
- visible: boolean;
6
- };
7
- export type M4LGetCypressDataGridColumnsConfig<T> = (data: T) => M4LDataGridCypressColumn[];