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/README.md
CHANGED
|
@@ -58,27 +58,25 @@ $ node --test some-test.js
|
|
|
58
58
|
|
|
59
59
|
# Suggested mode: if you want to run it in CI/google chrome:
|
|
60
60
|
|
|
61
|
-
$ qunitx some-test.js
|
|
61
|
+
$ qunitx some-test.js
|
|
62
62
|
|
|
63
63
|
# with browser output enabled:
|
|
64
64
|
|
|
65
|
-
$ qunitx some-test.js --
|
|
65
|
+
$ qunitx some-test.js --debug
|
|
66
66
|
|
|
67
67
|
# TypeScript also works, make sure on node.js mode, tsconfig.json exists with compilerOptions.module & compilerOptions.moduleResolution set to "NodeNext":
|
|
68
68
|
|
|
69
69
|
$ node --loader=ts-node/esm/transpile-only --test some-test.ts
|
|
70
70
|
|
|
71
|
-
$ qunitx some-test.ts --
|
|
71
|
+
$ qunitx some-test.ts --debug
|
|
72
72
|
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Code coverage
|
|
76
76
|
|
|
77
|
-
QUnitX
|
|
78
|
-
in existence at the moment:
|
|
79
|
-
|
|
77
|
+
Since QUnitX proxies to default node.js test runner in when executed with node, you can use any code coverage tool you like. When running the tests in `qunit`(the browser mode) code coverage support is limited.
|
|
80
78
|
```
|
|
81
|
-
c8
|
|
79
|
+
c8 node test/attachments test/user
|
|
82
80
|
```
|
|
83
81
|
|
|
84
82
|
You can browse [c8 documentation](https://github.com/bcoe/c8) for all configuration options.
|
package/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env -S TS_NODE_COMPILER_OPTIONS='{"module":"ES2020"}' node --loader ts-node/esm/transpile-only
|
|
2
|
+
import process from 'node:process';
|
|
2
3
|
import displayHelpOutput from './lib/commands/help.js';
|
|
3
4
|
import initializeProject from './lib/commands/init.js';
|
|
4
5
|
import generateTestFiles from './lib/commands/generate.js';
|