@naturalcycles/dev-lib 13.11.5 → 13.13.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/cfg/eslint-rules.js +0 -1
- package/cfg/tsconfig.json +2 -2
- package/dist/util/jest.util.js +2 -2
- package/package.json +2 -2
package/cfg/eslint-rules.js
CHANGED
package/cfg/tsconfig.json
CHANGED
package/dist/util/jest.util.js
CHANGED
|
@@ -77,7 +77,7 @@ async function runJest(opt = {}) {
|
|
|
77
77
|
// We used to default to 2, but due to memory being an issue for Jest - now we default to 1,
|
|
78
78
|
// as it's the most memory-efficient way
|
|
79
79
|
// Since `workerIdleMemoryLimit` was introduced by default - we're changing default back to 2 workers
|
|
80
|
-
maxWorkers
|
|
80
|
+
maxWorkers ||= '--maxWorkers=2';
|
|
81
81
|
}
|
|
82
82
|
// Running all tests - will use `--silent` to suppress console-logs, will also set process.env.JEST_SILENT=1
|
|
83
83
|
if (CI || isRunningAllTests()) {
|
|
@@ -85,7 +85,7 @@ async function runJest(opt = {}) {
|
|
|
85
85
|
}
|
|
86
86
|
if (leaks) {
|
|
87
87
|
args.push('--detectOpenHandles', '--detectLeaks');
|
|
88
|
-
maxWorkers
|
|
88
|
+
maxWorkers ||= '--maxWorkers=1';
|
|
89
89
|
}
|
|
90
90
|
if (maxWorkers)
|
|
91
91
|
args.push(maxWorkers);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.13.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky install",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"update-from-dev-lib": "dist/bin/update-from-dev-lib.js"
|
|
105
105
|
},
|
|
106
106
|
"engines": {
|
|
107
|
-
"node": ">=
|
|
107
|
+
"node": ">=16.10.0"
|
|
108
108
|
},
|
|
109
109
|
"publishConfig": {
|
|
110
110
|
"access": "public"
|