| 1 |
/* IMPORTANT |
| 2 |
* This snapshot file is auto-generated, but designed for humans. |
| 3 |
* It should be checked into source control and tracked carefully. |
| 4 |
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. |
| 5 |
* Make sure to inspect the output below. Do not ignore changes! |
| 6 |
*/ |
| 7 |
'use strict' |
| 8 |
exports[`test/cmd.ts TAP -h --help prints usage > --help output 1`] = ` |
| 9 |
Object { |
| 10 |
"code": 0, |
| 11 |
"signal": null, |
| 12 |
"stderr": "", |
| 13 |
"stdout": String( |
| 14 |
|
| 15 |
usage: mkdirp [DIR1,DIR2..] {OPTIONS} |
| 16 |
|
| 17 |
Create each supplied directory including any necessary parent directories |
| 18 |
that don't yet exist. |
| 19 |
|
| 20 |
If the directory already exists, do nothing. |
| 21 |
|
| 22 |
OPTIONS are: |
| 23 |
|
| 24 |
-m<mode> If a directory needs to be created, set the mode as an octal |
| 25 |
--mode=<mode> permission string. |
| 26 |
|
| 27 |
-v --version Print the mkdirp version number |
| 28 |
|
| 29 |
-h --help Print this helpful banner |
| 30 |
|
| 31 |
-p --print Print the first directories created for each path provided |
| 32 |
|
| 33 |
--manual Use manual implementation, even if native is available |
| 34 |
|
| 35 |
|
| 36 |
), |
| 37 |
} |
| 38 |
` |
| 39 |
|
| 40 |
exports[`test/cmd.ts TAP -v --version prints version > --version output 1`] = ` |
| 41 |
Object { |
| 42 |
"code": 0, |
| 43 |
"signal": null, |
| 44 |
"stderr": "", |
| 45 |
"stdout": "4.2.0-69.lol\\n", |
| 46 |
} |
| 47 |
` |
| 48 |
|
| 49 |
exports[`test/cmd.ts TAP failures > expect resolving Promise 1`] = ` |
| 50 |
Array [ |
| 51 |
Object { |
| 52 |
"code": 1, |
| 53 |
"signal": null, |
| 54 |
"stderr": "nope\\n", |
| 55 |
"stdout": "", |
| 56 |
}, |
| 57 |
Object { |
| 58 |
"code": 1, |
| 59 |
"signal": null, |
| 60 |
"stderr": String( |
| 61 |
fail |
| 62 |
code: EFAIL |
| 63 |
|
| 64 |
), |
| 65 |
"stdout": "", |
| 66 |
}, |
| 67 |
] |
| 68 |
` |
| 69 |
|
| 70 |
exports[`test/cmd.ts TAP invalid mode > expect resolving Promise 1`] = ` |
| 71 |
Object { |
| 72 |
"code": 1, |
| 73 |
"signal": null, |
| 74 |
"stderr": String( |
| 75 |
invalid mode argument: --mode=XYZ |
| 76 |
Must be an octal number. |
| 77 |
|
| 78 |
), |
| 79 |
"stdout": "", |
| 80 |
} |
| 81 |
` |
| 82 |
|
| 83 |
exports[`test/cmd.ts TAP make dir named --help > expect resolving Promise 1`] = ` |
| 84 |
Object { |
| 85 |
"code": 0, |
| 86 |
"signal": null, |
| 87 |
"stderr": "", |
| 88 |
"stdout": "--help 0\\n", |
| 89 |
} |
| 90 |
` |
| 91 |
|
| 92 |
exports[`test/cmd.ts TAP making dirs > expect resolving Promise 1`] = ` |
| 93 |
Object { |
| 94 |
"code": 0, |
| 95 |
"signal": null, |
| 96 |
"stderr": "", |
| 97 |
"stdout": "", |
| 98 |
} |
| 99 |
` |
| 100 |
|
| 101 |
exports[`test/cmd.ts TAP manual > expect resolving Promise 1`] = ` |
| 102 |
Object { |
| 103 |
"code": 0, |
| 104 |
"signal": null, |
| 105 |
"stderr": "", |
| 106 |
"stdout": String( |
| 107 |
MANUAL a 0 |
| 108 |
MANUAL b/c/d 0 |
| 109 |
|
| 110 |
), |
| 111 |
} |
| 112 |
` |
| 113 |
|
| 114 |
exports[`test/cmd.ts TAP no dirs -> stderr usage > expect resolving Promise 1`] = ` |
| 115 |
Object { |
| 116 |
"code": 0, |
| 117 |
"signal": null, |
| 118 |
"stderr": String( |
| 119 |
|
| 120 |
usage: mkdirp [DIR1,DIR2..] {OPTIONS} |
| 121 |
|
| 122 |
Create each supplied directory including any necessary parent directories |
| 123 |
that don't yet exist. |
| 124 |
|
| 125 |
If the directory already exists, do nothing. |
| 126 |
|
| 127 |
OPTIONS are: |
| 128 |
|
| 129 |
-m<mode> If a directory needs to be created, set the mode as an octal |
| 130 |
--mode=<mode> permission string. |
| 131 |
|
| 132 |
-v --version Print the mkdirp version number |
| 133 |
|
| 134 |
-h --help Print this helpful banner |
| 135 |
|
| 136 |
-p --print Print the first directories created for each path provided |
| 137 |
|
| 138 |
--manual Use manual implementation, even if native is available |
| 139 |
|
| 140 |
|
| 141 |
), |
| 142 |
"stdout": "", |
| 143 |
} |
| 144 |
` |
| 145 |
|
| 146 |
exports[`test/cmd.ts TAP noisily > expect resolving Promise 1`] = ` |
| 147 |
Object { |
| 148 |
"code": 0, |
| 149 |
"signal": null, |
| 150 |
"stderr": "", |
| 151 |
"stdout": String( |
| 152 |
a 0 |
| 153 |
b/c/d 0 |
| 154 |
|
| 155 |
), |
| 156 |
} |
| 157 |
` |
| 158 |
|
| 159 |
exports[`test/cmd.ts TAP print modes > expect resolving Promise 1`] = ` |
| 160 |
Object { |
| 161 |
"code": 0, |
| 162 |
"signal": null, |
| 163 |
"stderr": "", |
| 164 |
"stdout": "a 509\\n", |
| 165 |
} |
| 166 |
` |