@neurodevs/node-tdd 1.0.5 → 1.0.7

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.
Files changed (179) hide show
  1. package/package.json +1 -1
  2. package/.nvmrc +0 -1
  3. package/.vscode/launch.json +0 -53
  4. package/.vscode/settings.json +0 -62
  5. package/.vscode/tasks.json +0 -99
  6. package/build/__tests__/MockFetch.d.ts +0 -18
  7. package/build/__tests__/MockFetch.js +0 -55
  8. package/build/__tests__/MockFetch.js.map +0 -1
  9. package/build/__tests__/behavioral/AbstractModuleTest.test.d.ts +0 -5
  10. package/build/__tests__/behavioral/AbstractModuleTest.test.js +0 -22
  11. package/build/__tests__/behavioral/AbstractModuleTest.test.js.map +0 -1
  12. package/build/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.d.ts +0 -5
  13. package/build/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.js +0 -34
  14. package/build/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.js.map +0 -1
  15. package/build/__tests__/behavioral/utilities/Assert.test.d.ts +0 -45
  16. package/build/__tests__/behavioral/utilities/Assert.test.js +0 -645
  17. package/build/__tests__/behavioral/utilities/Assert.test.js.map +0 -1
  18. package/build/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.d.ts +0 -4
  19. package/build/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.js +0 -23
  20. package/build/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.js.map +0 -1
  21. package/build/__tests__/behavioral/utilities/MockFetch.test.d.ts +0 -28
  22. package/build/__tests__/behavioral/utilities/MockFetch.test.js +0 -211
  23. package/build/__tests__/behavioral/utilities/MockFetch.test.js.map +0 -1
  24. package/build/__tests__/behavioral/utilities/StackCleaner.test.d.ts +0 -4
  25. package/build/__tests__/behavioral/utilities/StackCleaner.test.js +0 -46
  26. package/build/__tests__/behavioral/utilities/StackCleaner.test.js.map +0 -1
  27. package/build/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.d.ts +0 -7
  28. package/build/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.js +0 -32
  29. package/build/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.js.map +0 -1
  30. package/build/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.d.ts +0 -4
  31. package/build/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.js +0 -19
  32. package/build/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.js.map +0 -1
  33. package/build/__tests__/behavioral/utilities/Stringify.test.d.ts +0 -5
  34. package/build/__tests__/behavioral/utilities/Stringify.test.js +0 -127
  35. package/build/__tests__/behavioral/utilities/Stringify.test.js.map +0 -1
  36. package/build/__tests__/behavioral/utilities/TestDecoratorResolver.test.d.ts +0 -7
  37. package/build/__tests__/behavioral/utilities/TestDecoratorResolver.test.js +0 -38
  38. package/build/__tests__/behavioral/utilities/TestDecoratorResolver.test.js.map +0 -1
  39. package/build/__tests__/behavioral/utilities/TestOnBasic.test.d.ts +0 -12
  40. package/build/__tests__/behavioral/utilities/TestOnBasic.test.js +0 -68
  41. package/build/__tests__/behavioral/utilities/TestOnBasic.test.js.map +0 -1
  42. package/build/__tests__/behavioral/utilities/TestOnInstance.test.d.ts +0 -28
  43. package/build/__tests__/behavioral/utilities/TestOnInstance.test.js +0 -289
  44. package/build/__tests__/behavioral/utilities/TestOnInstance.test.js.map +0 -1
  45. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.d.ts +0 -9
  46. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.js +0 -118
  47. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.js.map +0 -1
  48. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.d.ts +0 -5
  49. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.js +0 -78
  50. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.js.map +0 -1
  51. package/build/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.d.ts +0 -4
  52. package/build/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.js +0 -23
  53. package/build/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.js.map +0 -1
  54. package/build/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.d.ts +0 -4
  55. package/build/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.js +0 -24
  56. package/build/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.js.map +0 -1
  57. package/build/__tests__/behavioral/utilities/TestResolver.test.d.ts +0 -7
  58. package/build/__tests__/behavioral/utilities/TestResolver.test.js +0 -38
  59. package/build/__tests__/behavioral/utilities/TestResolver.test.js.map +0 -1
  60. package/build/__tests__/behavioral/utilities/TestResolverOnStatic.test.d.ts +0 -4
  61. package/build/__tests__/behavioral/utilities/TestResolverOnStatic.test.js +0 -20
  62. package/build/__tests__/behavioral/utilities/TestResolverOnStatic.test.js.map +0 -1
  63. package/build/__tests__/behavioral/workspace/JestJsonParser.test.d.ts +0 -18
  64. package/build/__tests__/behavioral/workspace/JestJsonParser.test.js +0 -267
  65. package/build/__tests__/behavioral/workspace/JestJsonParser.test.js.map +0 -1
  66. package/build/__tests__/behavioral/workspace/TestReporter.test.d.ts +0 -27
  67. package/build/__tests__/behavioral/workspace/TestReporter.test.js +0 -508
  68. package/build/__tests__/behavioral/workspace/TestReporter.test.js.map +0 -1
  69. package/build/__tests__/behavioral/workspace/TestRunner.test.d.ts +0 -15
  70. package/build/__tests__/behavioral/workspace/TestRunner.test.js +0 -99
  71. package/build/__tests__/behavioral/workspace/TestRunner.test.js.map +0 -1
  72. package/build/__tests__/behavioral/workspace/Widgets.test.d.ts +0 -16
  73. package/build/__tests__/behavioral/workspace/Widgets.test.js +0 -134
  74. package/build/__tests__/behavioral/workspace/Widgets.test.js.map +0 -1
  75. package/build/__tests__/mock-terminal-kit.d.ts +0 -79
  76. package/build/__tests__/mock-terminal-kit.js +0 -103
  77. package/build/__tests__/mock-terminal-kit.js.map +0 -1
  78. package/build/__tests__/support/AbstractForInstanceTest.d.ts +0 -4
  79. package/build/__tests__/support/AbstractForInstanceTest.js +0 -9
  80. package/build/__tests__/support/AbstractForInstanceTest.js.map +0 -1
  81. package/build/__tests__/support/AbstractLevelOneTest.d.ts +0 -3
  82. package/build/__tests__/support/AbstractLevelOneTest.js +0 -4
  83. package/build/__tests__/support/AbstractLevelOneTest.js.map +0 -1
  84. package/build/__tests__/support/AbstractLevelTwoTest.d.ts +0 -7
  85. package/build/__tests__/support/AbstractLevelTwoTest.js +0 -14
  86. package/build/__tests__/support/AbstractLevelTwoTest.js.map +0 -1
  87. package/build/__tests__/support/AbstractStaticTest.d.ts +0 -7
  88. package/build/__tests__/support/AbstractStaticTest.js +0 -14
  89. package/build/__tests__/support/AbstractStaticTest.js.map +0 -1
  90. package/build/__tests__/support/AbstractTestOnInstanceTest.d.ts +0 -22
  91. package/build/__tests__/support/AbstractTestOnInstanceTest.js +0 -23
  92. package/build/__tests__/support/AbstractTestOnInstanceTest.js.map +0 -1
  93. package/build/__tests__/support/AbstractTestOnInstanceWithHooks.d.ts +0 -26
  94. package/build/__tests__/support/AbstractTestOnInstanceWithHooks.js +0 -59
  95. package/build/__tests__/support/AbstractTestOnInstanceWithHooks.js.map +0 -1
  96. package/build/__tests__/support/jest.setup.d.ts +0 -1
  97. package/build/__tests__/support/jest.setup.js +0 -4
  98. package/build/__tests__/support/jest.setup.js.map +0 -1
  99. package/build/__tests__/support/onTestFileResult.d.ts +0 -244
  100. package/build/__tests__/support/onTestFileResult.js +0 -980
  101. package/build/__tests__/support/onTestFileResult.js.map +0 -1
  102. package/eslint.config.js +0 -3
  103. package/prettier.config.js +0 -3
  104. package/src/.spruce/settings.json +0 -4
  105. package/src/__tests__/MockFetch.ts +0 -100
  106. package/src/__tests__/behavioral/AbstractModuleTest.test.ts +0 -15
  107. package/src/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.ts +0 -31
  108. package/src/__tests__/behavioral/utilities/Assert.test.ts +0 -826
  109. package/src/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.ts +0 -14
  110. package/src/__tests__/behavioral/utilities/MockFetch.test.ts +0 -240
  111. package/src/__tests__/behavioral/utilities/StackCleaner.test.ts +0 -46
  112. package/src/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.ts +0 -34
  113. package/src/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.ts +0 -11
  114. package/src/__tests__/behavioral/utilities/Stringify.test.ts +0 -169
  115. package/src/__tests__/behavioral/utilities/TestDecoratorResolver.test.ts +0 -51
  116. package/src/__tests__/behavioral/utilities/TestOnBasic.test.ts +0 -62
  117. package/src/__tests__/behavioral/utilities/TestOnInstance.test.ts +0 -439
  118. package/src/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.ts +0 -237
  119. package/src/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.ts +0 -85
  120. package/src/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.ts +0 -14
  121. package/src/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.ts +0 -16
  122. package/src/__tests__/behavioral/utilities/TestResolver.test.ts +0 -48
  123. package/src/__tests__/behavioral/utilities/TestResolverOnStatic.test.ts +0 -12
  124. package/src/__tests__/behavioral/workspace/JestJsonParser.test.ts +0 -357
  125. package/src/__tests__/behavioral/workspace/TestReporter.test.ts +0 -584
  126. package/src/__tests__/behavioral/workspace/TestRunner.test.ts +0 -87
  127. package/src/__tests__/behavioral/workspace/Widgets.test.ts +0 -131
  128. package/src/__tests__/mock-terminal-kit.ts +0 -115
  129. package/src/__tests__/support/AbstractForInstanceTest.ts +0 -12
  130. package/src/__tests__/support/AbstractLevelOneTest.ts +0 -3
  131. package/src/__tests__/support/AbstractLevelTwoTest.ts +0 -16
  132. package/src/__tests__/support/AbstractStaticTest.ts +0 -16
  133. package/src/__tests__/support/AbstractTestOnInstanceTest.ts +0 -30
  134. package/src/__tests__/support/AbstractTestOnInstanceWithHooks.ts +0 -138
  135. package/src/__tests__/support/jest.setup.ts +0 -2
  136. package/src/__tests__/support/onTestFileResult.ts +0 -1008
  137. package/src/impl/AbstractModuleTest.ts +0 -67
  138. package/src/index.ts +0 -12
  139. package/src/utilities/AssertionError.ts +0 -14
  140. package/src/utilities/StackCleaner.ts +0 -14
  141. package/src/utilities/TestDecoratorResolver.ts +0 -118
  142. package/src/utilities/assert.ts +0 -583
  143. package/src/utilities/assert.utility.ts +0 -295
  144. package/src/utilities/decorators.ts +0 -167
  145. package/src/workspace/CommandService.ts +0 -256
  146. package/src/workspace/JestJsonParser.ts +0 -255
  147. package/src/workspace/TKButtonWidget.ts +0 -54
  148. package/src/workspace/TestLogItemGenerator.ts +0 -184
  149. package/src/workspace/TestReporter.ts +0 -880
  150. package/src/workspace/TestRunner.ts +0 -128
  151. package/src/workspace/TkBaseWidget.ts +0 -249
  152. package/src/workspace/TkInputWidget.ts +0 -83
  153. package/src/workspace/TkLayoutCellWidget.ts +0 -46
  154. package/src/workspace/TkLayoutWidget.ts +0 -181
  155. package/src/workspace/TkMenuBarWidget.ts +0 -95
  156. package/src/workspace/TkPopupWidget.ts +0 -47
  157. package/src/workspace/TkProgressBarWidget.ts +0 -54
  158. package/src/workspace/TkTextWidget.ts +0 -167
  159. package/src/workspace/TkWindowWidget.ts +0 -122
  160. package/src/workspace/WidgetFactory.ts +0 -33
  161. package/src/workspace/button.types.ts +0 -19
  162. package/src/workspace/duration.utility.ts +0 -34
  163. package/src/workspace/factory.types.ts +0 -101
  164. package/src/workspace/input.types.ts +0 -22
  165. package/src/workspace/keySelectChoices.ts +0 -134
  166. package/src/workspace/layout.types.ts +0 -40
  167. package/src/workspace/menuBar.types.ts +0 -24
  168. package/src/workspace/popup.types.ts +0 -17
  169. package/src/workspace/progressBar.types.ts +0 -13
  170. package/src/workspace/table.types.ts +0 -9
  171. package/src/workspace/termKit.utility.ts +0 -130
  172. package/src/workspace/terminal-kit.d.ts +0 -28
  173. package/src/workspace/test.types.ts +0 -34
  174. package/src/workspace/testRunner.cli.ts +0 -166
  175. package/src/workspace/text.types.ts +0 -27
  176. package/src/workspace/widget.utilities.ts +0 -35
  177. package/src/workspace/widgets.types.ts +0 -102
  178. package/src/workspace/window.types.ts +0 -22
  179. package/tsconfig.json +0 -24
@@ -1,508 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
8
- import test from '../../../utilities/decorators.js';
9
- import assert from '../../../utilities/assert.js';
10
- import TestReporter from '../../../workspace/TestReporter.js';
11
- export default class TestReporterTest extends AbstractModuleTest {
12
- static async canInstantiateTestReporter() {
13
- const reporter = this.TestReporter();
14
- assert.isTruthy(reporter);
15
- }
16
- static async canInstantiateWithOptions() {
17
- const reporter = this.TestReporter({
18
- cwd: this.cwd,
19
- watchMode: 'off',
20
- status: 'ready',
21
- isDebugging: false,
22
- });
23
- assert.isTruthy(reporter);
24
- }
25
- static async hasStartMethod() {
26
- const reporter = this.TestReporter();
27
- assert.isFunction(reporter.start);
28
- }
29
- static async hasDestroyMethod() {
30
- const reporter = this.TestReporter();
31
- assert.isFunction(reporter.destroy);
32
- }
33
- static async hasUpdateResultsMethod() {
34
- const reporter = this.TestReporter();
35
- assert.isFunction(reporter.updateResults);
36
- }
37
- static async hasSetStatusMethod() {
38
- const reporter = this.TestReporter();
39
- assert.isFunction(reporter.setStatus);
40
- }
41
- static async hasResetMethod() {
42
- const reporter = this.TestReporter();
43
- assert.isFunction(reporter.reset);
44
- }
45
- static async hasAppendErrorMethod() {
46
- const reporter = this.TestReporter();
47
- assert.isFunction(reporter.appendError);
48
- }
49
- static async throwsIfUpdateResultsCalledBeforeStart() {
50
- const reporter = this.TestReporter();
51
- assert.doesThrow(() => {
52
- reporter.updateResults({ totalTestFiles: 0 });
53
- });
54
- }
55
- static async doesNotDestroyOnUncaughtException() {
56
- const reporter = this.TestReporter();
57
- let destroyCalled = false;
58
- let killHandler;
59
- const fakeWidget = new Proxy({}, {
60
- get: (_t, prop) => {
61
- if (prop === 'getFrame') {
62
- return () => ({
63
- left: 0,
64
- top: 0,
65
- width: 100,
66
- height: 50,
67
- });
68
- }
69
- if (prop === 'getChildById') {
70
- return () => null;
71
- }
72
- if (prop === 'getRows') {
73
- return () => [{}];
74
- }
75
- if (prop === 'getFocusedWidget') {
76
- return () => null;
77
- }
78
- if (prop === 'on') {
79
- return (event, handler) => {
80
- if (event === 'kill') {
81
- killHandler = handler;
82
- }
83
- };
84
- }
85
- return () => fakeWidget;
86
- },
87
- });
88
- reporter.widgets = { Widget: () => fakeWidget };
89
- reporter.destroy = async () => {
90
- destroyCalled = true;
91
- };
92
- await reporter.start();
93
- assert.isTruthy(killHandler, 'kill handler must be registered');
94
- killHandler({
95
- code: new Error('terminal-kit mouse boundary crash'),
96
- });
97
- assert.isFalse(destroyCalled, 'uncaughtException must not destroy the UI');
98
- killHandler({ code: 0 });
99
- assert.isTrue(destroyCalled, 'real exit signal must still destroy the UI');
100
- clearInterval(reporter.updateInterval);
101
- }
102
- static async grabsInputToResetMouseStateAfterCrash() {
103
- const reporter = this.TestReporter();
104
- let destroyCalled = false;
105
- let grabInputCalled = false;
106
- let killHandler;
107
- const fakeTerm = {
108
- grabInput: () => {
109
- grabInputCalled = true;
110
- },
111
- };
112
- const fakeWidget = new Proxy({}, {
113
- get: (_t, prop) => {
114
- if (prop === 'getFrame') {
115
- return () => ({
116
- left: 0,
117
- top: 0,
118
- width: 100,
119
- height: 50,
120
- });
121
- }
122
- if (prop === 'getChildById') {
123
- return () => null;
124
- }
125
- if (prop === 'getRows') {
126
- return () => [{}];
127
- }
128
- if (prop === 'getFocusedWidget') {
129
- return () => null;
130
- }
131
- if (prop === 'term') {
132
- return fakeTerm;
133
- }
134
- if (prop === 'on') {
135
- return (event, handler) => {
136
- if (event === 'kill') {
137
- killHandler = handler;
138
- }
139
- };
140
- }
141
- return () => fakeWidget;
142
- },
143
- });
144
- reporter.widgets = { Widget: () => fakeWidget };
145
- reporter.destroy = async () => {
146
- destroyCalled = true;
147
- };
148
- await reporter.start();
149
- assert.isTruthy(killHandler, 'kill handler must be registered');
150
- killHandler({
151
- code: new Error('terminal-kit mouse boundary crash'),
152
- });
153
- assert.isFalse(destroyCalled, 'uncaughtException must not destroy the UI');
154
- killHandler({ code: 0 });
155
- assert.isTrue(destroyCalled, 'real exit signal must still destroy the UI');
156
- assert.isTrue(grabInputCalled, 'grabInput must be called to reset mouse state after terminal crash');
157
- clearInterval(reporter.updateInterval);
158
- }
159
- static async errorLogIsCreatedWithFocusableSetToFalse() {
160
- const reporter = this.TestReporter();
161
- let capturedTextOptions;
162
- const fakeCell = { getFrame: () => ({ width: 100, height: 50 }) };
163
- reporter.orientation = 'landscape';
164
- reporter.bottomLayout = {
165
- getRows: () => [{ id: 'row_1' }],
166
- addColumn: () => { },
167
- setColumnWidth: () => { },
168
- updateLayout: () => { },
169
- getChildById: (id) => {
170
- return id === 'errors' ? fakeCell : null;
171
- },
172
- };
173
- reporter.widgets = {
174
- Widget: (type, options) => {
175
- if (type === 'text') {
176
- capturedTextOptions = options;
177
- }
178
- return {
179
- on: () => { },
180
- getFrame: () => ({ width: 100, height: 50 }),
181
- };
182
- },
183
- };
184
- reporter.dropInErrorLog();
185
- assert.isFalse(capturedTextOptions?.focusable, 'errorLog must be created with focusable: false to prevent UI lockup on click');
186
- }
187
- static async setWatchModeSetsSmartWatchLabel() {
188
- const reporter = this.TestReporter();
189
- const captured = {};
190
- reporter.menu = this.fakeMenu(captured);
191
- reporter.setWatchMode('smart');
192
- assert.isEqual(captured['watchDropdown'], 'Smart Watch ^k^#^g • ^');
193
- }
194
- static async setWatchModeSetsStandardWatchLabel() {
195
- const reporter = this.TestReporter();
196
- const captured = {};
197
- reporter.menu = this.fakeMenu(captured);
198
- reporter.setWatchMode('standard');
199
- assert.isEqual(captured['watchDropdown'], 'Standard Watch ^k^#^g • ^');
200
- }
201
- static async setWatchModeSetsNotWatchingLabel() {
202
- const reporter = this.TestReporter();
203
- const captured = {};
204
- reporter.menu = this.fakeMenu(captured);
205
- reporter.setWatchMode('off');
206
- assert.isEqual(captured['watchDropdown'], 'Not Watching ^w^#^r • ^');
207
- }
208
- static async setWatchModeSkipsLabelUpdateWhenCountdownActive() {
209
- const reporter = this.TestReporter();
210
- const captured = {};
211
- reporter.menu = this.fakeMenu(captured);
212
- reporter.countDownTimeInterval = setInterval(() => { }, 10000);
213
- reporter.setWatchMode('smart');
214
- clearInterval(reporter.countDownTimeInterval);
215
- assert.isUndefined(captured['watchDropdown'], 'label must not update during countdown');
216
- }
217
- static async createsDropInMenuWidgetOnStart() {
218
- const reporter = this.TestReporter();
219
- let capturedMenuBarOptions;
220
- const fakeWidget = new Proxy({}, {
221
- get: (_t, prop) => {
222
- if (prop === 'getFrame') {
223
- return () => ({
224
- left: 0,
225
- top: 0,
226
- width: 100,
227
- height: 50,
228
- });
229
- }
230
- if (prop === 'getChildById') {
231
- return () => null;
232
- }
233
- if (prop === 'getRows') {
234
- return () => [{}];
235
- }
236
- if (prop === 'getFocusedWidget') {
237
- return () => null;
238
- }
239
- if (prop === 'on') {
240
- return () => fakeWidget;
241
- }
242
- return () => fakeWidget;
243
- },
244
- });
245
- reporter.widgets = {
246
- Widget: (type, options) => {
247
- if (type === 'menuBar') {
248
- capturedMenuBarOptions = options;
249
- }
250
- return fakeWidget;
251
- },
252
- };
253
- await reporter.start();
254
- assert.isEqualDeep(capturedMenuBarOptions, {
255
- parent: reporter.window,
256
- left: 0,
257
- top: 0,
258
- shouldLockWidthWithParent: true,
259
- items: [
260
- {
261
- label: 'Restart ',
262
- value: 'restart',
263
- },
264
- {
265
- label: 'Debug ',
266
- value: 'toggleDebug',
267
- },
268
- {
269
- label: 'Not Watching ',
270
- value: 'watchDropdown',
271
- items: [
272
- {
273
- label: 'Watch all',
274
- value: 'toggleStandardWatch',
275
- },
276
- {
277
- label: 'Smart watch',
278
- value: 'toggleSmartWatch',
279
- },
280
- ],
281
- },
282
- {
283
- label: 'Quit',
284
- value: 'quit',
285
- },
286
- ],
287
- });
288
- clearInterval(reporter.updateInterval);
289
- }
290
- static async createsTestLogWidgetOnStart() {
291
- const reporter = this.TestReporter();
292
- let capturedTextOptions = [];
293
- const fakeWidget = new Proxy({}, {
294
- get: (_t, prop) => {
295
- if (prop === 'getFrame') {
296
- return () => ({
297
- left: 0,
298
- top: 0,
299
- width: 100,
300
- height: 50,
301
- });
302
- }
303
- if (prop === 'getChildById') {
304
- return () => null;
305
- }
306
- if (prop === 'getRows') {
307
- return () => [{}];
308
- }
309
- if (prop === 'getFocusedWidget') {
310
- return () => null;
311
- }
312
- if (prop === 'on') {
313
- return () => fakeWidget;
314
- }
315
- return () => fakeWidget;
316
- },
317
- });
318
- reporter.widgets = {
319
- Widget: (type, options) => {
320
- capturedTextOptions.push({ type, options });
321
- return fakeWidget;
322
- },
323
- };
324
- await reporter.start();
325
- const expectedOptions = {
326
- isScrollEnabled: true,
327
- wordWrap: false,
328
- left: 0,
329
- top: 0,
330
- height: '100%',
331
- width: '100%',
332
- shouldLockHeightWithParent: true,
333
- shouldLockWidthWithParent: true,
334
- };
335
- const entry = capturedTextOptions.find((o) => o.type === 'text' &&
336
- Object.keys(expectedOptions).every((k) => o.options[k] === expectedOptions[k]));
337
- assert.isTruthy(entry, 'Test log widget must be created on start');
338
- clearInterval(reporter.updateInterval);
339
- }
340
- static async createsSelectTestPopupWidgetOnStart() {
341
- const reporter = this.TestReporter();
342
- const capturedTextOptions = [];
343
- const popupWidth = 50;
344
- const fakePopup = {
345
- getFrame: () => ({ width: popupWidth }),
346
- on: () => fakePopup,
347
- };
348
- const fakeButton = { on: () => fakeButton };
349
- reporter.window = {};
350
- reporter.widgets = {
351
- Widget: (type, options) => {
352
- capturedTextOptions.push({ type, options });
353
- if (type === 'popup') {
354
- return fakePopup;
355
- }
356
- return fakeButton;
357
- },
358
- };
359
- reporter.dropInSelectTestPopup({
360
- testFile: 'src/foo/bar.test.ts',
361
- row: 10,
362
- column: 30,
363
- });
364
- const entry = capturedTextOptions.find((o) => o.type === 'text' &&
365
- o.options?.text?.startsWith('Selected file:'));
366
- assert.isTruthy(entry, 'popup text widget must be created');
367
- const { parent: _parent, ...restOptions } = entry.options;
368
- assert.isEqualDeep(restOptions, {
369
- left: 1,
370
- top: 1,
371
- height: 4,
372
- width: popupWidth - 2,
373
- text: 'Selected file:\n\nsrc/foo/bar.test.ts',
374
- });
375
- }
376
- static async scrollsToTopWhenStatusSetToStopped() {
377
- const reporter = this.TestReporter();
378
- let scrollToTopCalled = false;
379
- reporter.menu = this.fakeMenu({});
380
- reporter.bottomLayout = { updateLayout: () => { } };
381
- reporter.statusBar = { setText: () => { } };
382
- reporter.testLog = {
383
- scrollToTop: () => {
384
- scrollToTopCalled = true;
385
- },
386
- setText: () => { },
387
- getText: () => '',
388
- };
389
- reporter.setStatus('stopped');
390
- assert.isTrue(scrollToTopCalled, 'scrollToTop must be called when status is stopped');
391
- }
392
- static async getFileForLineReturnsCorrectFileForRow() {
393
- const reporter = this.TestReporter();
394
- reporter.lastResults = {
395
- testFiles: [
396
- {
397
- path: 'file1.ts',
398
- status: 'passed',
399
- tests: [{ name: 'test1' }, { name: 'test2' }],
400
- },
401
- {
402
- path: 'file2.ts',
403
- status: 'passed',
404
- tests: [{ name: 'test3' }],
405
- },
406
- ],
407
- };
408
- reporter.testLog = { getScrollY: () => 0 };
409
- // file1: rows 0–2 (header + 2 tests), file2: rows 3–4 (header + 1 test)
410
- assert.isEqual(reporter.getFileForLine(0), 'file1.ts'); // header
411
- assert.isEqual(reporter.getFileForLine(2), 'file1.ts'); // last test
412
- assert.isEqual(reporter.getFileForLine(3), 'file2.ts'); // file2 header
413
- assert.isEqual(reporter.getFileForLine(4), 'file2.ts'); // file2 last test
414
- assert.isEqual(reporter.getFileForLine(5), undefined); // out of range
415
- }
416
- static async sortsFailedFilesToTopWhenStopped() {
417
- const reporter = this.TestReporter();
418
- reporter.status = 'stopped';
419
- reporter.lastResults = { customErrors: [] };
420
- const results = {
421
- testFiles: [
422
- { path: 'passing.ts', status: 'passed', tests: [] },
423
- { path: 'failing.ts', status: 'failed', tests: [] },
424
- ],
425
- };
426
- const { logContent } = reporter.resultsToLogContents(results);
427
- const failingIdx = logContent.indexOf('failing.ts');
428
- const passingIdx = logContent.indexOf('passing.ts');
429
- assert.isBelow(failingIdx, passingIdx, 'Failed file must appear before passing file when stopped');
430
- }
431
- static fakeMenu(captured) {
432
- return {
433
- setTextForItem: (key, label) => {
434
- captured[key] = label;
435
- },
436
- };
437
- }
438
- static TestReporter(options) {
439
- return new TestReporter(options);
440
- }
441
- }
442
- __decorate([
443
- test()
444
- ], TestReporterTest, "canInstantiateTestReporter", null);
445
- __decorate([
446
- test()
447
- ], TestReporterTest, "canInstantiateWithOptions", null);
448
- __decorate([
449
- test()
450
- ], TestReporterTest, "hasStartMethod", null);
451
- __decorate([
452
- test()
453
- ], TestReporterTest, "hasDestroyMethod", null);
454
- __decorate([
455
- test()
456
- ], TestReporterTest, "hasUpdateResultsMethod", null);
457
- __decorate([
458
- test()
459
- ], TestReporterTest, "hasSetStatusMethod", null);
460
- __decorate([
461
- test()
462
- ], TestReporterTest, "hasResetMethod", null);
463
- __decorate([
464
- test()
465
- ], TestReporterTest, "hasAppendErrorMethod", null);
466
- __decorate([
467
- test()
468
- ], TestReporterTest, "throwsIfUpdateResultsCalledBeforeStart", null);
469
- __decorate([
470
- test()
471
- ], TestReporterTest, "doesNotDestroyOnUncaughtException", null);
472
- __decorate([
473
- test()
474
- ], TestReporterTest, "grabsInputToResetMouseStateAfterCrash", null);
475
- __decorate([
476
- test()
477
- ], TestReporterTest, "errorLogIsCreatedWithFocusableSetToFalse", null);
478
- __decorate([
479
- test()
480
- ], TestReporterTest, "setWatchModeSetsSmartWatchLabel", null);
481
- __decorate([
482
- test()
483
- ], TestReporterTest, "setWatchModeSetsStandardWatchLabel", null);
484
- __decorate([
485
- test()
486
- ], TestReporterTest, "setWatchModeSetsNotWatchingLabel", null);
487
- __decorate([
488
- test()
489
- ], TestReporterTest, "setWatchModeSkipsLabelUpdateWhenCountdownActive", null);
490
- __decorate([
491
- test()
492
- ], TestReporterTest, "createsDropInMenuWidgetOnStart", null);
493
- __decorate([
494
- test()
495
- ], TestReporterTest, "createsTestLogWidgetOnStart", null);
496
- __decorate([
497
- test()
498
- ], TestReporterTest, "createsSelectTestPopupWidgetOnStart", null);
499
- __decorate([
500
- test()
501
- ], TestReporterTest, "scrollsToTopWhenStatusSetToStopped", null);
502
- __decorate([
503
- test()
504
- ], TestReporterTest, "getFileForLineReturnsCorrectFileForRow", null);
505
- __decorate([
506
- test()
507
- ], TestReporterTest, "sortsFailedFilesToTopWhenStopped", null);
508
- //# sourceMappingURL=TestReporter.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestReporter.test.js","sourceRoot":"","sources":["../../../../src/__tests__/behavioral/workspace/TestReporter.test.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AACpE,OAAO,IAAI,MAAM,kCAAkC,CAAA;AACnD,OAAO,MAAM,MAAM,8BAA8B,CAAA;AACjD,OAAO,YAEN,MAAM,oCAAoC,CA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CAAC,GAAW,EAAE,KAAa,EAAE,EAAE;gBAC3C,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;YACzB,CAAC;SACJ,CAAA;IACL,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,OAA6B;QACrD,OAAO,IAAI,YAAY,CAAC,OAAO,CAAQ,CAAA;IAC3C,CAAC;CACJ;AA9jB0B;IADtB,IAAI,EAAE;wDAIN;AAGsB;IADtB,IAAI,EAAE;uDASN;AAGsB;IADtB,IAAI,EAAE;4CAIN;AAGsB;IADtB,IAAI,EAAE;8CAIN;AAGsB;IADtB,IAAI,EAAE;oDAIN;AAGsB;IADtB,IAAI,EAAE;gDAIN;AAGsB;IADtB,IAAI,EAAE;4CAIN;AAGsB;IADtB,IAAI,EAAE;kDAIN;AAGsB;IADtB,IAAI,EAAE;oEAMN;AAGsB;IADtB,IAAI,EAAE;+DA+DN;AAGsB;IADtB,IAAI,EAAE;mEA8EN;AAGsB;IADtB,IAAI,EAAE;sEAqCN;AAGsB;IADtB,IAAI,EAAE;6DAON;AAGsB;IADtB,IAAI,EAAE;gEAON;AAGsB;IADtB,IAAI,EAAE;8DAON;AAGsB;IADtB,IAAI,EAAE;6EAYN;AAGsB;IADtB,IAAI,EAAE;4DAiFN;AAGsB;IADtB,IAAI,EAAE;yDAiEN;AAGsB;IADtB,IAAI,EAAE;iEA+CN;AAGsB;IADtB,IAAI,EAAE;gEAsBN;AAGsB;IADtB,IAAI,EAAE;oEA2BN;AAGsB;IADtB,IAAI,EAAE;8DAwBN"}
@@ -1,15 +0,0 @@
1
- import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
2
- export default class TestRunnerTest extends AbstractModuleTest {
3
- private static runner;
4
- protected static beforeEach(): Promise<void>;
5
- protected static canInstantiateTestRunner(): Promise<void>;
6
- protected static hasHasFailedTestsMethod(): Promise<void>;
7
- protected static hasHasSkippedTestsMethod(): Promise<void>;
8
- protected static hasKillMethod(): Promise<void>;
9
- protected static hasRunMethod(): Promise<void>;
10
- protected static hasFailedTestsReturnsFalseByDefault(): Promise<void>;
11
- protected static hasSkippedTestsReturnsFalseByDefault(): Promise<void>;
12
- protected static emitsDidUpdateEvent(): Promise<void>;
13
- protected static emitsDidErrorEvent(): Promise<void>;
14
- protected static passesNodeNoWarningsToCommandService(): Promise<void>;
15
- }
@@ -1,99 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
8
- import test from '../../../utilities/decorators.js';
9
- import assert from '../../../utilities/assert.js';
10
- import TestRunner from '../../../workspace/TestRunner.js';
11
- import CommandServiceImpl from '../../../workspace/CommandService.js';
12
- export default class TestRunnerTest extends AbstractModuleTest {
13
- static runner;
14
- static async beforeEach() {
15
- await super.beforeEach();
16
- const commandService = new CommandServiceImpl(this.cwd);
17
- this.runner = new TestRunner({ cwd: this.cwd, commandService });
18
- }
19
- static async canInstantiateTestRunner() {
20
- assert.isTruthy(this.runner);
21
- }
22
- static async hasHasFailedTestsMethod() {
23
- assert.isFunction(this.runner.hasFailedTests);
24
- }
25
- static async hasHasSkippedTestsMethod() {
26
- assert.isFunction(this.runner.hasSkippedTests);
27
- }
28
- static async hasKillMethod() {
29
- assert.isFunction(this.runner.kill);
30
- }
31
- static async hasRunMethod() {
32
- assert.isFunction(this.runner.run);
33
- }
34
- static async hasFailedTestsReturnsFalseByDefault() {
35
- assert.isFalse(this.runner.hasFailedTests());
36
- }
37
- static async hasSkippedTestsReturnsFalseByDefault() {
38
- assert.isFalse(this.runner.hasSkippedTests());
39
- }
40
- static async emitsDidUpdateEvent() {
41
- let emitted = false;
42
- this.runner.on('did-update', () => {
43
- emitted = true;
44
- });
45
- assert.isFalse(emitted);
46
- this.runner.emit('did-update', { results: { totalTestFiles: 0 } });
47
- assert.isTrue(emitted);
48
- }
49
- static async emitsDidErrorEvent() {
50
- let errorMessage = '';
51
- this.runner.on('did-error', (payload) => {
52
- errorMessage = payload.message;
53
- });
54
- this.runner.emit('did-error', { message: 'test error' });
55
- assert.isEqual(errorMessage, 'test error');
56
- }
57
- static async passesNodeNoWarningsToCommandService() {
58
- let capturedEnv;
59
- const commandService = new CommandServiceImpl(this.cwd);
60
- commandService.execute = async (_cmd, options) => {
61
- capturedEnv = options?.env;
62
- return { stdout: '' };
63
- };
64
- const runner = new TestRunner({ cwd: this.cwd, commandService });
65
- await runner.run();
66
- assert.isEqual(capturedEnv?.NODE_NO_WARNINGS, '1');
67
- }
68
- }
69
- __decorate([
70
- test()
71
- ], TestRunnerTest, "canInstantiateTestRunner", null);
72
- __decorate([
73
- test()
74
- ], TestRunnerTest, "hasHasFailedTestsMethod", null);
75
- __decorate([
76
- test()
77
- ], TestRunnerTest, "hasHasSkippedTestsMethod", null);
78
- __decorate([
79
- test()
80
- ], TestRunnerTest, "hasKillMethod", null);
81
- __decorate([
82
- test()
83
- ], TestRunnerTest, "hasRunMethod", null);
84
- __decorate([
85
- test()
86
- ], TestRunnerTest, "hasFailedTestsReturnsFalseByDefault", null);
87
- __decorate([
88
- test()
89
- ], TestRunnerTest, "hasSkippedTestsReturnsFalseByDefault", null);
90
- __decorate([
91
- test()
92
- ], TestRunnerTest, "emitsDidUpdateEvent", null);
93
- __decorate([
94
- test()
95
- ], TestRunnerTest, "emitsDidErrorEvent", null);
96
- __decorate([
97
- test()
98
- ], TestRunnerTest, "passesNodeNoWarningsToCommandService", null);
99
- //# sourceMappingURL=TestRunner.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestRunner.test.js","s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AG,IAAI,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACvD,cAAc,CAAC,OAAO,GAAG,KAAK,EAAE,IAAY,EAAE,OAAa,EAAE,EAAE;YAC3D,WAAW,GAAG,OAAO,EAAE,GAAG,CAAA;YAC1B,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAA;QACzB,CAAC,CAAA;QAED,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,CAAC,CAAA;QAChE,MAAM,MAAM,CAAC,GAAG,EAAE,CAAA;QAElB,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAA;IACtD,CAAC;CACJ;AAtE0B;IADtB,IAAI,EAAE;oDAGN;AAGsB;IADtB,IAAI,EAAE;mDAGN;AAGsB;IADtB,IAAI,EAAE;oDAGN;AAGsB;IADtB,IAAI,EAAE;yCAGN;AAGsB;IADtB,IAAI,EAAE;wCAGN;AAGsB;IADtB,IAAI,EAAE;+DAGN;AAGsB;IADtB,IAAI,EAAE;gEAGN;AAGsB;IADtB,IAAI,EAAE;+CASN;AAGsB;IADtB,IAAI,EAAE;8CAQN;AAGsB;IADtB,IAAI,EAAE;gEAcN"}
@@ -1,16 +0,0 @@
1
- import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
2
- export default class WidgetsTest extends AbstractModuleTest {
3
- private static factory;
4
- protected static beforeEach(): Promise<void>;
5
- protected static canCreateFactory(): Promise<void>;
6
- protected static canCreateTextWidget(): Promise<void>;
7
- protected static setsStartingFrame(): Promise<void>;
8
- protected static canCreateWindow(): void;
9
- protected static canCreateProgressBar(): void;
10
- protected static canCreateText(): void;
11
- protected static canCreateLayout(): void;
12
- protected static setFrameResyncsScrollPositionOnScrollableWidget(): Promise<void>;
13
- protected static scrollToTopCallsScrollToWithZero(): Promise<void>;
14
- private static buildScrollableText;
15
- private static buildText;
16
- }