qunitx 0.6.0 → 0.7.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/README.md +5 -7
- package/cli.js +1 -0
- package/deno.lock +343 -93
- package/lib/commands/run.js +34 -74
- package/lib/servers/http.js +5 -1
- package/lib/setup/fs-tree.js +1 -1
- package/lib/setup/keyboard-events.js +17 -40
- package/lib/utils/find-project-root.js +1 -0
- package/lib/utils/listen-to-keyboard-key.js +2 -0
- package/lib/utils/parse-cli-flags.js +2 -4
- package/package.json +12 -9
- package/shims/deno-assert.js +2 -2
- package/shims/nodejs-assert.js +1 -0
- package/shims/nodejs.js +1 -1
- package/deno-bridge.js +0 -16
- package/lib/commands/run/tests-in-node.js +0 -60
- package/lib/setup/node-js-environment.js +0 -74
- package/lol.ts +0 -18
- package/test-output.log +0 -240
package/test-output.log
DELETED
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
TAP version 13
|
|
2
|
-
# Subtest: Commands | Help tests
|
|
3
|
-
# Subtest: $ qunitx -> prints help text
|
|
4
|
-
not ok 1 - $ qunitx -> prints help text
|
|
5
|
-
---
|
|
6
|
-
duration_ms: 1189.454842
|
|
7
|
-
failureType: 'testCodeFailure'
|
|
8
|
-
error: |-
|
|
9
|
-
Command failed: deno run --allow-read /home/izelnakri/Github/qunitx/cli.js
|
|
10
|
-
[0m[1m[31merror[0m: Error in nanoexpress@6.2.2 parsing version requirement for dependency: uWebSockets.js@https://github.com/uNetworking/uWebSockets.js/archive/v20.24.0.tar.gz
|
|
11
|
-
|
|
12
|
-
Invalid npm version requirement. Unexpected character.
|
|
13
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
14
|
-
~
|
|
15
|
-
|
|
16
|
-
Caused by:
|
|
17
|
-
0: Invalid npm version requirement. Unexpected character.
|
|
18
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
19
|
-
~
|
|
20
|
-
1: Unexpected character.
|
|
21
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
22
|
-
~
|
|
23
|
-
|
|
24
|
-
code: 1
|
|
25
|
-
stack: |-
|
|
26
|
-
ChildProcess.exithandler (node:child_process:419:12)
|
|
27
|
-
ChildProcess.emit (node:events:511:28)
|
|
28
|
-
maybeClose (node:internal/child_process:1098:16)
|
|
29
|
-
ChildProcess._handle.onexit (node:internal/child_process:304:5)
|
|
30
|
-
...
|
|
31
|
-
# Subtest: $ qunitx print -> prints help text
|
|
32
|
-
not ok 2 - $ qunitx print -> prints help text
|
|
33
|
-
---
|
|
34
|
-
duration_ms: 1189.049467
|
|
35
|
-
failureType: 'testCodeFailure'
|
|
36
|
-
error: |-
|
|
37
|
-
Command failed: deno run --allow-read /home/izelnakri/Github/qunitx/cli.js print
|
|
38
|
-
[0m[1m[31merror[0m: Error in nanoexpress@6.2.2 parsing version requirement for dependency: uWebSockets.js@https://github.com/uNetworking/uWebSockets.js/archive/v20.24.0.tar.gz
|
|
39
|
-
|
|
40
|
-
Invalid npm version requirement. Unexpected character.
|
|
41
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
42
|
-
~
|
|
43
|
-
|
|
44
|
-
Caused by:
|
|
45
|
-
0: Invalid npm version requirement. Unexpected character.
|
|
46
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
47
|
-
~
|
|
48
|
-
1: Unexpected character.
|
|
49
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
50
|
-
~
|
|
51
|
-
|
|
52
|
-
code: 1
|
|
53
|
-
stack: |-
|
|
54
|
-
ChildProcess.exithandler (node:child_process:419:12)
|
|
55
|
-
ChildProcess.emit (node:events:511:28)
|
|
56
|
-
maybeClose (node:internal/child_process:1098:16)
|
|
57
|
-
Socket.<anonymous> (node:internal/child_process:456:11)
|
|
58
|
-
Socket.emit (node:events:511:28)
|
|
59
|
-
Pipe.<anonymous> (node:net:334:12)
|
|
60
|
-
...
|
|
61
|
-
# Subtest: $ qunitx p -> prints help text
|
|
62
|
-
not ok 3 - $ qunitx p -> prints help text
|
|
63
|
-
---
|
|
64
|
-
duration_ms: 1221.173565
|
|
65
|
-
failureType: 'testCodeFailure'
|
|
66
|
-
error: |-
|
|
67
|
-
Command failed: deno run --allow-read /home/izelnakri/Github/qunitx/cli.js p
|
|
68
|
-
[0m[1m[31merror[0m: Error in nanoexpress@6.2.2 parsing version requirement for dependency: uWebSockets.js@https://github.com/uNetworking/uWebSockets.js/archive/v20.24.0.tar.gz
|
|
69
|
-
|
|
70
|
-
Invalid npm version requirement. Unexpected character.
|
|
71
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
72
|
-
~
|
|
73
|
-
|
|
74
|
-
Caused by:
|
|
75
|
-
0: Invalid npm version requirement. Unexpected character.
|
|
76
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
77
|
-
~
|
|
78
|
-
1: Unexpected character.
|
|
79
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
80
|
-
~
|
|
81
|
-
|
|
82
|
-
code: 1
|
|
83
|
-
stack: |-
|
|
84
|
-
ChildProcess.exithandler (node:child_process:419:12)
|
|
85
|
-
ChildProcess.emit (node:events:511:28)
|
|
86
|
-
maybeClose (node:internal/child_process:1098:16)
|
|
87
|
-
Socket.<anonymous> (node:internal/child_process:456:11)
|
|
88
|
-
Socket.emit (node:events:511:28)
|
|
89
|
-
Pipe.<anonymous> (node:net:334:12)
|
|
90
|
-
...
|
|
91
|
-
# Subtest: $ qunitx help -> prints help text
|
|
92
|
-
not ok 4 - $ qunitx help -> prints help text
|
|
93
|
-
---
|
|
94
|
-
duration_ms: 1219.543611
|
|
95
|
-
failureType: 'testCodeFailure'
|
|
96
|
-
error: |-
|
|
97
|
-
Command failed: deno run --allow-read /home/izelnakri/Github/qunitx/cli.js help
|
|
98
|
-
[0m[1m[31merror[0m: Error in nanoexpress@6.2.2 parsing version requirement for dependency: uWebSockets.js@https://github.com/uNetworking/uWebSockets.js/archive/v20.24.0.tar.gz
|
|
99
|
-
|
|
100
|
-
Invalid npm version requirement. Unexpected character.
|
|
101
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
102
|
-
~
|
|
103
|
-
|
|
104
|
-
Caused by:
|
|
105
|
-
0: Invalid npm version requirement. Unexpected character.
|
|
106
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
107
|
-
~
|
|
108
|
-
1: Unexpected character.
|
|
109
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
110
|
-
~
|
|
111
|
-
|
|
112
|
-
code: 1
|
|
113
|
-
stack: |-
|
|
114
|
-
ChildProcess.exithandler (node:child_process:419:12)
|
|
115
|
-
ChildProcess.emit (node:events:511:28)
|
|
116
|
-
maybeClose (node:internal/child_process:1098:16)
|
|
117
|
-
ChildProcess._handle.onexit (node:internal/child_process:304:5)
|
|
118
|
-
...
|
|
119
|
-
# Subtest: $ qunitx h -> prints help text
|
|
120
|
-
not ok 5 - $ qunitx h -> prints help text
|
|
121
|
-
---
|
|
122
|
-
duration_ms: 1185.981364
|
|
123
|
-
failureType: 'testCodeFailure'
|
|
124
|
-
error: |-
|
|
125
|
-
Command failed: deno run --allow-read /home/izelnakri/Github/qunitx/cli.js h
|
|
126
|
-
[0m[1m[31merror[0m: Error in nanoexpress@6.2.2 parsing version requirement for dependency: uWebSockets.js@https://github.com/uNetworking/uWebSockets.js/archive/v20.24.0.tar.gz
|
|
127
|
-
|
|
128
|
-
Invalid npm version requirement. Unexpected character.
|
|
129
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
130
|
-
~
|
|
131
|
-
|
|
132
|
-
Caused by:
|
|
133
|
-
0: Invalid npm version requirement. Unexpected character.
|
|
134
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
135
|
-
~
|
|
136
|
-
1: Unexpected character.
|
|
137
|
-
https://github.com/uNetworking/uWebSockets.js/archive/v20.24
|
|
138
|
-
~
|
|
139
|
-
|
|
140
|
-
code: 1
|
|
141
|
-
stack: |-
|
|
142
|
-
ChildProcess.exithandler (node:child_process:419:12)
|
|
143
|
-
ChildProcess.emit (node:events:511:28)
|
|
144
|
-
maybeClose (node:internal/child_process:1098:16)
|
|
145
|
-
Socket.<anonymous> (node:internal/child_process:456:11)
|
|
146
|
-
Socket.emit (node:events:511:28)
|
|
147
|
-
Pipe.<anonymous> (node:net:334:12)
|
|
148
|
-
...
|
|
149
|
-
1..5
|
|
150
|
-
not ok 1 - Commands | Help tests
|
|
151
|
-
---
|
|
152
|
-
duration_ms: 1227.284124
|
|
153
|
-
type: 'suite'
|
|
154
|
-
failureType: 'subtestsFailed'
|
|
155
|
-
error: '5 subtests failed'
|
|
156
|
-
code: 'ERR_TEST_FAILURE'
|
|
157
|
-
...
|
|
158
|
-
# Trace:
|
|
159
|
-
# TEST NAME: --after script tests | --after works when it doesnt need to be awaited
|
|
160
|
-
# TEST COMMAND: node cli.js test/helpers/passing-tests.js --after=test/helpers/after-script-basic.js
|
|
161
|
-
# 0: \# QUnitX running: /home/izelnakri/Github/qunitx/test/helpers/passing-tests.js
|
|
162
|
-
# 1: TAP version 13
|
|
163
|
-
# 2: calling assert true test case
|
|
164
|
-
# 3: ok 1 {{moduleName}} Passing Tests | assert true works \# (1 ms)
|
|
165
|
-
# 4: resolving async test
|
|
166
|
-
# 5: {
|
|
167
|
-
# 6: moduleName: 'called resolved async test with object',
|
|
168
|
-
# 7: placeholder: 1000,
|
|
169
|
-
# 8: anotherObject: { firstName: 'Izel', createdAt: 2021-03-06T00:00:00.000Z }
|
|
170
|
-
# 9: }
|
|
171
|
-
# 10: ok 2 {{moduleName}} Passing Tests | async test finishes \# (53 ms)
|
|
172
|
-
# 11: calling deepEqual test case
|
|
173
|
-
# 12: ok 3 {{moduleName}} Passing Tests | deepEqual true works \# (0 ms)
|
|
174
|
-
# 13:
|
|
175
|
-
# 14: 1..3
|
|
176
|
-
# 15: \# tests 3
|
|
177
|
-
# 16: \# pass 3
|
|
178
|
-
# 17: \# skip 0
|
|
179
|
-
# 18: \# fail 0
|
|
180
|
-
# 19: \# duration 57
|
|
181
|
-
# 20:
|
|
182
|
-
# 21: This is running from after script!!
|
|
183
|
-
# 22:
|
|
184
|
-
#
|
|
185
|
-
# at execute (file:///home/izelnakri/Github/qunitx/test/helpers/shell.js:11:13)
|
|
186
|
-
# at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
187
|
-
# at async file:///home/izelnakri/Github/qunitx/test/flags/after-test.js:7:24
|
|
188
|
-
# at async TestContext.<anonymous> (file:///home/izelnakri/Github/qunitx/shims/nodejs.js:21:12)
|
|
189
|
-
# at async Test.run (node:internal/test_runner/test:570:9)
|
|
190
|
-
# at async Promise.all (index 0)
|
|
191
|
-
# at async Suite.run (node:internal/test_runner/test:806:7)
|
|
192
|
-
# at async Test.processPendingSubtests (node:internal/test_runner/test:316:7)
|
|
193
|
-
# Subtest: --after script tests
|
|
194
|
-
# Subtest: --after works when it doesnt need to be awaited
|
|
195
|
-
ok 1 - --after works when it doesnt need to be awaited
|
|
196
|
-
---
|
|
197
|
-
duration_ms: 873.878639
|
|
198
|
-
...
|
|
199
|
-
# Trace:
|
|
200
|
-
# TEST NAME: --after script tests | --after works it needs to be awaited
|
|
201
|
-
# TEST COMMAND: node cli.js test/helpers/passing-tests.js --after=test/helpers/after-script-async.js
|
|
202
|
-
# 0: \# QUnitX running: /home/izelnakri/Github/qunitx/test/helpers/passing-tests.js
|
|
203
|
-
# 1: TAP version 13
|
|
204
|
-
# 2: calling assert true test case
|
|
205
|
-
# 3: ok 1 {{moduleName}} Passing Tests | assert true works \# (2 ms)
|
|
206
|
-
# 4: resolving async test
|
|
207
|
-
# 5: {
|
|
208
|
-
# 6: moduleName: 'called resolved async test with object',
|
|
209
|
-
# 7: placeholder: 1000,
|
|
210
|
-
# 8: anotherObject: { firstName: 'Izel', createdAt: 2021-03-06T00:00:00.000Z }
|
|
211
|
-
# 9: }
|
|
212
|
-
# 10: ok 2 {{moduleName}} Passing Tests | async test finishes \# (54 ms)
|
|
213
|
-
# 11: calling deepEqual test case
|
|
214
|
-
# 12: ok 3 {{moduleName}} Passing Tests | deepEqual true works \# (1 ms)
|
|
215
|
-
# 13:
|
|
216
|
-
# 14: 1..3
|
|
217
|
-
# 15: \# tests 3
|
|
218
|
-
# 16: \# pass 3
|
|
219
|
-
# 17: \# skip 0
|
|
220
|
-
# 18: \# fail 0
|
|
221
|
-
# 19: \# duration 58
|
|
222
|
-
# 20:
|
|
223
|
-
# 21: This is running from after script!!
|
|
224
|
-
# 22: After script result is written:
|
|
225
|
-
# 23: {
|
|
226
|
-
# 24: "testCount": 3,
|
|
227
|
-
# 25: "failCount": 0,
|
|
228
|
-
# 26: "skipCount": 0,
|
|
229
|
-
# 27: "passCount": 3
|
|
230
|
-
# 28: }
|
|
231
|
-
# 29:
|
|
232
|
-
#
|
|
233
|
-
# at execute (file:///home/izelnakri/Github/qunitx/test/helpers/shell.js:11:13)
|
|
234
|
-
# at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
235
|
-
# at async file:///home/izelnakri/Github/qunitx/test/flags/after-test.js:23:24
|
|
236
|
-
# at async TestContext.<anonymous> (file:///home/izelnakri/Github/qunitx/shims/nodejs.js:21:12)
|
|
237
|
-
# at async Test.run (node:internal/test_runner/test:570:9)
|
|
238
|
-
# at async Promise.all (index 2)
|
|
239
|
-
# at async Suite.run (node:internal/test_runner/test:806:7)
|
|
240
|
-
# at async Test.processPendingSubtests (node:internal/test_runner/test:316:7)
|