|
1
|
"use strict"; |
|
2
|
var __defProp = Object.defineProperty; |
|
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
|
4
|
var __getOwnPropNames = Object.getOwnPropertyNames; |
|
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty; |
|
6
|
var __export = (target, all) => { |
|
7
|
for (var name in all) |
|
8
|
__defProp(target, name, { get: all[name], enumerable: true }); |
|
9
|
}; |
|
10
|
var __copyProps = (to, from, except, desc) => { |
|
11
|
if (from && typeof from === "object" || typeof from === "function") { |
|
12
|
for (let key of __getOwnPropNames(from)) |
|
13
|
if (!__hasOwnProp.call(to, key) && key !== except) |
|
14
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); |
|
15
|
} |
|
16
|
return to; |
|
17
|
}; |
|
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); |
|
19
|
var globals_exports = {}; |
|
20
|
__export(globals_exports, { |
|
21
|
currentTestInfo: () => currentTestInfo, |
|
22
|
currentlyLoadingFileSuite: () => currentlyLoadingFileSuite, |
|
23
|
isWorkerProcess: () => isWorkerProcess, |
|
24
|
setCurrentTestInfo: () => setCurrentTestInfo, |
|
25
|
setCurrentlyLoadingFileSuite: () => setCurrentlyLoadingFileSuite, |
|
26
|
setIsWorkerProcess: () => setIsWorkerProcess |
|
27
|
}); |
|
28
|
module.exports = __toCommonJS(globals_exports); |
|
29
|
let currentTestInfoValue = null; |
|
30
|
function setCurrentTestInfo(testInfo) { |
|
31
|
currentTestInfoValue = testInfo; |
|
32
|
} |
|
33
|
function currentTestInfo() { |
|
34
|
return currentTestInfoValue; |
|
35
|
} |
|
36
|
let currentFileSuite; |
|
37
|
function setCurrentlyLoadingFileSuite(suite) { |
|
38
|
currentFileSuite = suite; |
|
39
|
} |
|
40
|
function currentlyLoadingFileSuite() { |
|
41
|
return currentFileSuite; |
|
42
|
} |
|
43
|
let _isWorkerProcess = false; |
|
44
|
function setIsWorkerProcess() { |
|
45
|
_isWorkerProcess = true; |
|
46
|
} |
|
47
|
function isWorkerProcess() { |
|
48
|
return _isWorkerProcess; |
|
49
|
} |
|
50
|
// Annotate the CommonJS export names for ESM import in node: |
|
51
|
0 && (module.exports = { |
|
52
|
currentTestInfo, |
|
53
|
currentlyLoadingFileSuite, |
|
54
|
isWorkerProcess, |
|
55
|
setCurrentTestInfo, |
|
56
|
setCurrentlyLoadingFileSuite, |
|
57
|
setIsWorkerProcess |
|
58
|
}); |
|
59
|
|