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