Last active
March 11, 2022 01:20
-
-
Save isaacs/5ce51c2ab7a13d114b992b0d4b418794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rm -rf .tap; _TAPJS_PROCESSINFO_EXCLUDE_='/(?!'$PWD'/lib/node-options-to-argv.cjs$)^.*$/' node --loader=./lib/esm.mjs test/node-options-to-argv.cjs | |
(node:41096) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time | |
(Use `node --trace-warnings ...` to show where the warning was created) | |
TAP version 13 | |
1..7 | |
ok 1 - should be equivalent | |
ok 2 - should be equivalent | |
ok 3 - should be equivalent | |
ok 4 - should be equivalent | |
ok 5 - should be equivalent | |
ok 6 - should be equivalent | |
ok 7 - should be equivalent | |
# time=3.023ms | |
$ tree .tap | |
.tap/ | |
├── coverage/ | |
│ └── ee808b87-4788-4517-80d7-44fe62294b33.json | |
└── processinfo/ | |
└── ee808b87-4788-4517-80d7-44fe62294b33.json | |
2 directories, 2 files | |
$ npx c8 --temp-directory=.tap/coverage report | |
--------------------------|---------|----------|---------|---------|------------------- | |
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | |
--------------------------|---------|----------|---------|---------|------------------- | |
All files | 100 | 100 | 100 | 100 | | |
node-options-to-argv.cjs | 100 | 100 | 100 | 100 | | |
--------------------------|---------|----------|---------|---------|------------------- | |
$ json <.tap/processinfo/ee808b87-4788-4517-80d7-44fe62294b33.json | |
{ | |
"date": "2022-03-11T01:15:42.954Z", | |
"argv": [ | |
"/usr/local/bin/node", | |
"/Users/isaacs/dev/tapjs/processinfo/test/node-options-to-argv.cjs" | |
], | |
"execArgv": [ | |
"--loader=./lib/esm.mjs" | |
], | |
"cwd": "/Users/isaacs/dev/tapjs/processinfo", | |
"pid": 41096, | |
"ppid": 37163, | |
"parent": null, | |
"uuid": "ee808b87-4788-4517-80d7-44fe62294b33", | |
"files": [ | |
"/Users/isaacs/dev/tapjs/processinfo/lib/node-options-to-argv.cjs" | |
], | |
"root": "ee808b87-4788-4517-80d7-44fe62294b33", | |
"code": 0, | |
"signal": null, | |
"runtime": 30.311125 | |
} | |
$ ls -laF .tap/coverage/ | |
total 8 | |
drwxr-xr-x 3 isaacs staff 96 Mar 10 17:15 ./ | |
drwxr-xr-x 4 isaacs staff 128 Mar 10 17:15 ../ | |
-rw-r--r-- 1 isaacs staff 2656 Mar 10 17:15 ee808b87-4788-4517-80d7-44fe62294b33.json | |
$ # look at that tiny file!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment