@itwin/build-tools 4.2.0-dev.9 → 4.2.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 +65 -1
- package/mocha-reporter/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,55 @@
|
|
1
1
|
# Change Log - @itwin/build-tools
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 17 Oct 2023 15:14:32 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 4.2.0
|
6
|
+
Tue, 17 Oct 2023 15:14:32 GMT
|
7
|
+
|
8
|
+
### Updates
|
9
|
+
|
10
|
+
- Changes name of environment variable that provides project root directory. Allows use of RUSHSTACK variable as well and updates README.
|
11
|
+
- Increase mocha reporter hang detection timeout duration to allow enough time for Chrome browsers during tests to close gracefully.
|
12
|
+
- update api-extractor to 7.36.4
|
13
|
+
|
14
|
+
## 4.1.9
|
15
|
+
Tue, 10 Oct 2023 18:48:12 GMT
|
16
|
+
|
17
|
+
_Version update only_
|
18
|
+
|
19
|
+
## 4.1.8
|
20
|
+
Fri, 06 Oct 2023 04:00:18 GMT
|
21
|
+
|
22
|
+
_Version update only_
|
23
|
+
|
24
|
+
## 4.1.7
|
25
|
+
Thu, 28 Sep 2023 21:41:33 GMT
|
26
|
+
|
27
|
+
_Version update only_
|
28
|
+
|
29
|
+
## 4.1.6
|
30
|
+
Tue, 12 Sep 2023 15:38:52 GMT
|
31
|
+
|
32
|
+
_Version update only_
|
33
|
+
|
34
|
+
## 4.1.5
|
35
|
+
Fri, 08 Sep 2023 13:37:23 GMT
|
36
|
+
|
37
|
+
_Version update only_
|
38
|
+
|
39
|
+
## 4.1.4
|
40
|
+
Thu, 07 Sep 2023 18:26:02 GMT
|
41
|
+
|
42
|
+
_Version update only_
|
43
|
+
|
44
|
+
## 4.1.3
|
45
|
+
Wed, 30 Aug 2023 15:35:27 GMT
|
46
|
+
|
47
|
+
_Version update only_
|
48
|
+
|
49
|
+
## 4.1.2
|
50
|
+
Wed, 23 Aug 2023 15:25:29 GMT
|
51
|
+
|
52
|
+
_Version update only_
|
4
53
|
|
5
54
|
## 4.1.1
|
6
55
|
Fri, 18 Aug 2023 13:02:53 GMT
|
@@ -61,6 +110,21 @@ Mon, 22 May 2023 15:34:14 GMT
|
|
61
110
|
- Fixed 'betools docs' script to set 'packageRoot' to correct relative path from root to package source.
|
62
111
|
- Upgrade TypeScript compile target to es2021.
|
63
112
|
|
113
|
+
## 3.7.16
|
114
|
+
Mon, 16 Oct 2023 12:49:07 GMT
|
115
|
+
|
116
|
+
_Version update only_
|
117
|
+
|
118
|
+
## 3.7.15
|
119
|
+
Tue, 10 Oct 2023 19:58:35 GMT
|
120
|
+
|
121
|
+
_Version update only_
|
122
|
+
|
123
|
+
## 3.7.14
|
124
|
+
Fri, 29 Sep 2023 16:57:16 GMT
|
125
|
+
|
126
|
+
_Version update only_
|
127
|
+
|
64
128
|
## 3.7.13
|
65
129
|
Tue, 08 Aug 2023 19:49:17 GMT
|
66
130
|
|
package/mocha-reporter/index.js
CHANGED
@@ -78,9 +78,9 @@ class BentleyMochaReporter extends Spec {
|
|
78
78
|
// Detect hangs caused by tests that leave timers/other handles open - not possible in electron frontends.
|
79
79
|
if (!("electron" in process.versions)) {
|
80
80
|
// NB: By calling unref() on this timer, we stop it from keeping the process alive, so it will only fire if _something else_ is still keeping
|
81
|
-
// the process alive after
|
81
|
+
// the process alive after 30 seconds. This also has the benefit of preventing the timer from showing up in wtfnode's dump of open handles.
|
82
82
|
setTimeout(() => {
|
83
|
-
logBuildError(`Handle leak detected. Node was still running
|
83
|
+
logBuildError(`Handle leak detected. Node was still running 30 seconds after tests completed.`);
|
84
84
|
if (debugLeaks) {
|
85
85
|
const wtf = require("wtfnode");
|
86
86
|
wtf.setLogger("info", console.error);
|
@@ -100,7 +100,7 @@ class BentleyMochaReporter extends Spec {
|
|
100
100
|
}
|
101
101
|
// Not sure why, but process.exit(1) wasn't working here...
|
102
102
|
process.kill(process.pid);
|
103
|
-
},
|
103
|
+
}, 30 * 1000).unref();
|
104
104
|
}
|
105
105
|
if (!this.stats.pending)
|
106
106
|
return;
|