@websolutespa/test 1.7.2 → 1.10.0-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @websolutespa/test
2
2
 
3
+ ## 1.10.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Updating: React 19.x, Payload 3.x
8
+
9
+ ## 1.7.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updating: jest dependencies
14
+
3
15
  ## 1.7.2
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ import { Config } from 'jest';
2
+
3
+ declare const baseConfig: Config;
4
+ declare function getProjectConfig(): {};
5
+ declare function getAppConfig(): {};
6
+ declare function getPackageConfig(): {};
7
+ declare function getPayloadConfig(): {};
8
+
9
+ export { baseConfig, getAppConfig, getPackageConfig, getPayloadConfig, getProjectConfig };
package/dist/index.js CHANGED
@@ -1,27 +1,10 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
8
  var __export = (target, all) => {
26
9
  for (var name in all)
27
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -45,15 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
29
 
47
30
  // index.ts
48
- var test_exports = {};
49
- __export(test_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
50
33
  baseConfig: () => baseConfig,
51
34
  getAppConfig: () => getAppConfig,
52
35
  getPackageConfig: () => getPackageConfig,
53
36
  getPayloadConfig: () => getPayloadConfig,
54
37
  getProjectConfig: () => getProjectConfig
55
38
  });
56
- module.exports = __toCommonJS(test_exports);
39
+ module.exports = __toCommonJS(index_exports);
57
40
  var import_jest = __toESM(require("next/jest"));
58
41
  var createJestConfig = (0, import_jest.default)({
59
42
  // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
@@ -86,7 +69,8 @@ var baseConfig = {
86
69
  };
87
70
  function getProjectConfig() {
88
71
  const cwd = process.cwd();
89
- const config = __spreadProps(__spreadValues({}, baseConfig), {
72
+ const config = {
73
+ ...baseConfig,
90
74
  rootDir: ".",
91
75
  roots: [
92
76
  `${cwd}`
@@ -142,7 +126,7 @@ function getProjectConfig() {
142
126
  "node_modules",
143
127
  "node_modules/(?!(swiper|swiper/react|ssr-window|dom7)/)"
144
128
  ]
145
- });
129
+ };
146
130
  return config;
147
131
  }
148
132
  function getAppConfig() {
@@ -163,7 +147,8 @@ function getAppConfig() {
163
147
  }
164
148
  function getPackageConfig() {
165
149
  const cwd = process.cwd();
166
- const config = __spreadProps(__spreadValues({}, baseConfig), {
150
+ const config = {
151
+ ...baseConfig,
167
152
  rootDir: ".",
168
153
  roots: [
169
154
  `${cwd}`
@@ -196,12 +181,13 @@ function getPackageConfig() {
196
181
  "<rootDir>/build/"
197
182
  ],
198
183
  transformIgnorePatterns: ["node_modules/(?!swiper)/"]
199
- });
184
+ };
200
185
  return config;
201
186
  }
202
187
  function getPayloadConfig() {
203
188
  const cwd = process.cwd();
204
- const config = __spreadProps(__spreadValues({}, baseConfig), {
189
+ const config = {
190
+ ...baseConfig,
205
191
  // testEnvironment: '<rootDir>/jest.environment.ts',
206
192
  testEnvironment: "node",
207
193
  testTimeout: 2e4,
@@ -247,7 +233,7 @@ function getPayloadConfig() {
247
233
  "\\.(css|scss)$": "identity-obj-proxy",
248
234
  "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/jest.mock.file.js"
249
235
  }
250
- });
236
+ };
251
237
  return config;
252
238
  }
253
239
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1,28 +1,8 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
21
2
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
22
3
  }) : x)(function(x) {
23
- if (typeof require !== "undefined")
24
- return require.apply(this, arguments);
25
- throw new Error('Dynamic require of "' + x + '" is not supported');
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error('Dynamic require of "' + x + '" is not supported');
26
6
  });
27
7
 
28
8
  // index.ts
@@ -58,7 +38,8 @@ var baseConfig = {
58
38
  };
59
39
  function getProjectConfig() {
60
40
  const cwd = process.cwd();
61
- const config = __spreadProps(__spreadValues({}, baseConfig), {
41
+ const config = {
42
+ ...baseConfig,
62
43
  rootDir: ".",
63
44
  roots: [
64
45
  `${cwd}`
@@ -114,7 +95,7 @@ function getProjectConfig() {
114
95
  "node_modules",
115
96
  "node_modules/(?!(swiper|swiper/react|ssr-window|dom7)/)"
116
97
  ]
117
- });
98
+ };
118
99
  return config;
119
100
  }
120
101
  function getAppConfig() {
@@ -135,7 +116,8 @@ function getAppConfig() {
135
116
  }
136
117
  function getPackageConfig() {
137
118
  const cwd = process.cwd();
138
- const config = __spreadProps(__spreadValues({}, baseConfig), {
119
+ const config = {
120
+ ...baseConfig,
139
121
  rootDir: ".",
140
122
  roots: [
141
123
  `${cwd}`
@@ -168,12 +150,13 @@ function getPackageConfig() {
168
150
  "<rootDir>/build/"
169
151
  ],
170
152
  transformIgnorePatterns: ["node_modules/(?!swiper)/"]
171
- });
153
+ };
172
154
  return config;
173
155
  }
174
156
  function getPayloadConfig() {
175
157
  const cwd = process.cwd();
176
- const config = __spreadProps(__spreadValues({}, baseConfig), {
158
+ const config = {
159
+ ...baseConfig,
177
160
  // testEnvironment: '<rootDir>/jest.environment.ts',
178
161
  testEnvironment: "node",
179
162
  testTimeout: 2e4,
@@ -219,7 +202,7 @@ function getPayloadConfig() {
219
202
  "\\.(css|scss)$": "identity-obj-proxy",
220
203
  "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/jest.mock.file.js"
221
204
  }
222
- });
205
+ };
223
206
  return config;
224
207
  }
225
208
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/test",
3
- "version": "1.7.2",
3
+ "version": "1.10.0-next.0",
4
4
  "description": "Test shared config of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -19,29 +19,29 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@playwright/test": "^1.29.1",
22
- "@testing-library/dom": "^8.19.0",
23
- "@testing-library/jest-dom": "^5.16.5",
24
- "@testing-library/react": "^13.4.0",
25
- "@testing-library/user-event": "^14.4.3",
22
+ "@testing-library/dom": "^10.3.2",
23
+ "@testing-library/jest-dom": "^6.4.6",
24
+ "@testing-library/react": "^16.0.0",
25
+ "@testing-library/user-event": "^14.5.2",
26
26
  "identity-obj-proxy": "^3.0.0",
27
- "jest-environment-jsdom": "^29.3.1",
28
- "jest-fail-on-console": "^3.0.2",
29
- "jest-matcher-utils": "^29.3.1",
27
+ "jest-environment-jsdom": "^29.7.0",
28
+ "jest-fail-on-console": "^3.3.0",
29
+ "jest-matcher-utils": "^29.7.0",
30
30
  "jest-styled-components": "^7.1.1",
31
- "jest": "^29.3.1"
31
+ "jest": "^29.7.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "next": ">= 14.1.4",
34
+ "next": ">= 15.3.0",
35
35
  "uuid": ">= 9.0.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/jest": "^29.2.4",
38
+ "@types/jest": "^29.5.14",
39
39
  "@types/uuid": "^9.0.2",
40
- "eslint-config-websolute": "*",
40
+ "@websolutespa/eslint-config": "*",
41
41
  "npm-run-all": "^4.1.5",
42
42
  "ts-node": "^10.9.2",
43
- "tsup": "^6.7.0",
44
- "typescript": "^5.4.5",
43
+ "tsup": "^8.5.0",
44
+ "typescript": "5.8.2",
45
45
  "uuid": "^9.0.1"
46
46
  },
47
47
  "publishConfig": {