@jsenv/test 1.1.3 → 1.1.5
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.
|
@@ -69,6 +69,7 @@ if (typeof global === "object") visitGlobalObject(global);
|
|
|
69
69
|
* transforms a javascript value into an object describing it.
|
|
70
70
|
*
|
|
71
71
|
*/
|
|
72
|
+
|
|
72
73
|
const decompose = (mainValue, {
|
|
73
74
|
functionAllowed,
|
|
74
75
|
prototypeStrict,
|
|
@@ -702,6 +703,7 @@ function safeDefineProperty(object, propertyNameOrSymbol, descriptor) {
|
|
|
702
703
|
* - https://github.com/nodejs/node/issues/28283
|
|
703
704
|
* - https://vanilla.aslushnikov.com/?Profiler.startPreciseCoverage
|
|
704
705
|
*/
|
|
706
|
+
|
|
705
707
|
const startJsCoverage = async ({
|
|
706
708
|
callCount = true,
|
|
707
709
|
detailed = true
|
package/dist/js/v8_coverage.js
CHANGED
package/dist/jsenv_test.js
CHANGED
|
@@ -457,6 +457,7 @@ const getPermissionOrComputeDefault = (action, subject, permissions) => {
|
|
|
457
457
|
* - stats object documentation on Node.js
|
|
458
458
|
* https://nodejs.org/docs/latest-v13.x/api/fs.html#fs_class_fs_stats
|
|
459
459
|
*/
|
|
460
|
+
|
|
460
461
|
const isWindows$1 = process.platform === "win32";
|
|
461
462
|
const readEntryStat = async (source, {
|
|
462
463
|
nullIfNotFound = false,
|
|
@@ -667,6 +668,7 @@ const removeNoop = () => {};
|
|
|
667
668
|
/*
|
|
668
669
|
* https://github.com/whatwg/dom/issues/920
|
|
669
670
|
*/
|
|
671
|
+
|
|
670
672
|
const Abort = {
|
|
671
673
|
isAbortError: error => {
|
|
672
674
|
return error && error.name === "AbortError";
|
|
@@ -1765,6 +1767,7 @@ function isUnicodeSupported() {
|
|
|
1765
1767
|
}
|
|
1766
1768
|
|
|
1767
1769
|
// see also https://github.com/sindresorhus/figures
|
|
1770
|
+
|
|
1768
1771
|
const canUseUnicode = isUnicodeSupported();
|
|
1769
1772
|
const COMMAND_RAW = canUseUnicode ? `❯` : `>`;
|
|
1770
1773
|
const OK_RAW = canUseUnicode ? `✔` : `√`;
|
|
@@ -2150,6 +2153,7 @@ const spyStreamOutput = stream => {
|
|
|
2150
2153
|
/*
|
|
2151
2154
|
* see also https://github.com/vadimdemedes/ink
|
|
2152
2155
|
*/
|
|
2156
|
+
|
|
2153
2157
|
const createLog = ({
|
|
2154
2158
|
stream = process.stdout,
|
|
2155
2159
|
newLine = "after"
|
|
@@ -3072,6 +3076,7 @@ const isV8Coverage = coverage => Boolean(coverage.result);
|
|
|
3072
3076
|
* - Errors are collected
|
|
3073
3077
|
* - File execution result is returned, it contains status/errors/namespace/consoleCalls
|
|
3074
3078
|
*/
|
|
3079
|
+
|
|
3075
3080
|
const run = async ({
|
|
3076
3081
|
signal = new AbortController().signal,
|
|
3077
3082
|
logger,
|
|
@@ -5653,6 +5658,8 @@ const onceChildProcessEvent = (childProcess, type, callback) => {
|
|
|
5653
5658
|
};
|
|
5654
5659
|
|
|
5655
5660
|
// https://github.com/avajs/ava/blob/576f534b345259055c95fa0c2b33bef10847a2af/lib/fork.js#L23
|
|
5661
|
+
// https://nodejs.org/api/worker_threads.html
|
|
5662
|
+
// https://github.com/avajs/ava/blob/576f534b345259055c95fa0c2b33bef10847a2af/lib/worker/base.js
|
|
5656
5663
|
const CONTROLLABLE_WORKER_THREAD_URL = new URL("./controllable_worker_thread.mjs?entry_point=", import.meta.url).href;
|
|
5657
5664
|
const nodeWorkerThread = ({
|
|
5658
5665
|
importMap,
|
|
@@ -5929,6 +5936,7 @@ const onceWorkerThreadEvent = (worker, type, callback) => {
|
|
|
5929
5936
|
* The run method will start a browser/node process and execute file in it
|
|
5930
5937
|
* - Most of the logic lives in "./run.js" used by executeTestPlan to run tests
|
|
5931
5938
|
*/
|
|
5939
|
+
|
|
5932
5940
|
const execute = async ({
|
|
5933
5941
|
signal = new AbortController().signal,
|
|
5934
5942
|
handleSIGINT = true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"playwright": "1.x"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@jsenv/core": "
|
|
36
|
+
"@jsenv/core": "36.0.0",
|
|
37
37
|
"@jsenv/abort": "4.2.4",
|
|
38
|
-
"@jsenv/ast": "
|
|
38
|
+
"@jsenv/ast": "4.0.0",
|
|
39
39
|
"@jsenv/filesystem": "4.2.3",
|
|
40
|
-
"@jsenv/log": "3.3.
|
|
40
|
+
"@jsenv/log": "3.3.5",
|
|
41
41
|
"@jsenv/urls": "2.0.0",
|
|
42
42
|
"@jsenv/url-meta": "8.1.0",
|
|
43
43
|
"@jsenv/uneval": "1.6.0",
|