main
1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import assert from 'node:assert'
16import { test, describe } from 'node:test'
17import * as core from '../build/core.cjs'
18import * as cli from '../build/cli.cjs'
19import * as index from '../build/index.cjs'
20
21//prettier-ignore
22describe('core', () => {
23 test('exports', () => {
24 assert.equal(typeof core.$, 'function', 'core.$')
25 assert.equal(typeof core.Fail, 'function', 'core.Fail')
26 assert.equal(typeof core.Fail.DOCS_URL, 'string', 'core.Fail.DOCS_URL')
27 assert.equal(typeof core.Fail.ERRNO_CODES, 'object', 'core.Fail.ERRNO_CODES')
28 assert.equal(typeof core.Fail.EXIT_CODES, 'object', 'core.Fail.EXIT_CODES')
29 assert.equal(typeof core.ProcessOutput, 'function', 'core.ProcessOutput')
30 assert.equal(typeof core.ProcessOutput.getErrorDetails, 'function', 'core.ProcessOutput.getErrorDetails')
31 assert.equal(typeof core.ProcessOutput.getErrorMessage, 'function', 'core.ProcessOutput.getErrorMessage')
32 assert.equal(typeof core.ProcessOutput.getExitCodeInfo, 'function', 'core.ProcessOutput.getExitCodeInfo')
33 assert.equal(typeof core.ProcessOutput.getExitMessage, 'function', 'core.ProcessOutput.getExitMessage')
34 assert.equal(typeof core.ProcessPromise, 'function', 'core.ProcessPromise')
35 assert.equal(typeof core.ProcessPromise.bus, 'object', 'core.ProcessPromise.bus')
36 assert.equal(typeof core.ProcessPromise.promisifyStream, 'function', 'core.ProcessPromise.promisifyStream')
37 assert.equal(typeof core.bus, 'object', 'core.bus')
38 assert.equal(typeof core.bus.lock, 'function', 'core.bus.lock')
39 assert.equal(typeof core.bus.override, 'function', 'core.bus.override')
40 assert.equal(typeof core.bus.wrap, 'function', 'core.bus.wrap')
41 assert.equal(typeof core.cd, 'function', 'core.cd')
42 assert.equal(typeof core.chalk, 'function', 'core.chalk')
43 assert.equal(typeof core.chalk.level, 'number', 'core.chalk.level')
44 assert.equal(typeof core.defaults, 'object', 'core.defaults')
45 assert.equal(typeof core.defaults.detached, 'boolean', 'core.defaults.detached')
46 assert.equal(typeof core.defaults.env, 'object', 'core.defaults.env')
47 assert.equal(typeof core.defaults.kill, 'function', 'core.defaults.kill')
48 assert.equal(typeof core.defaults.killSignal, 'string', 'core.defaults.killSignal')
49 assert.equal(typeof core.defaults.log, 'function', 'core.defaults.log')
50 assert.equal(typeof core.defaults.nothrow, 'boolean', 'core.defaults.nothrow')
51 assert.equal(typeof core.defaults.postfix, 'string', 'core.defaults.postfix')
52 assert.equal(typeof core.defaults.preferLocal, 'boolean', 'core.defaults.preferLocal')
53 assert.equal(typeof core.defaults.prefix, 'string', 'core.defaults.prefix')
54 assert.equal(typeof core.defaults.quiet, 'boolean', 'core.defaults.quiet')
55 assert.equal(typeof core.defaults.quote, 'function', 'core.defaults.quote')
56 assert.equal(typeof core.defaults.shell, 'string', 'core.defaults.shell')
57 assert.equal(typeof core.defaults.spawn, 'function', 'core.defaults.spawn')
58 assert.equal(typeof core.defaults.spawnSync, 'function', 'core.defaults.spawnSync')
59 assert.equal(typeof core.defaults.stdio, 'string', 'core.defaults.stdio')
60 assert.equal(typeof core.defaults.sync, 'boolean', 'core.defaults.sync')
61 assert.equal(typeof core.defaults.timeoutSignal, 'string', 'core.defaults.timeoutSignal')
62 assert.equal(typeof core.defaults.verbose, 'boolean', 'core.defaults.verbose')
63 assert.equal(typeof core.kill, 'function', 'core.kill')
64 assert.equal(typeof core.log, 'function', 'core.log')
65 assert.equal(typeof core.os, 'object', 'core.os')
66 assert.equal(typeof core.os.EOL, 'string', 'core.os.EOL')
67 assert.equal(typeof core.os.arch, 'function', 'core.os.arch')
68 assert.equal(typeof core.os.availableParallelism, 'function', 'core.os.availableParallelism')
69 assert.equal(typeof core.os.constants, 'object', 'core.os.constants')
70 assert.equal(typeof core.os.cpus, 'function', 'core.os.cpus')
71 assert.equal(typeof core.os.default, 'object', 'core.os.default')
72 assert.equal(typeof core.os.devNull, 'string', 'core.os.devNull')
73 assert.equal(typeof core.os.endianness, 'function', 'core.os.endianness')
74 assert.equal(typeof core.os.freemem, 'function', 'core.os.freemem')
75 assert.equal(typeof core.os.getPriority, 'function', 'core.os.getPriority')
76 assert.equal(typeof core.os.homedir, 'function', 'core.os.homedir')
77 assert.equal(typeof core.os.hostname, 'function', 'core.os.hostname')
78 assert.equal(typeof core.os.loadavg, 'function', 'core.os.loadavg')
79 assert.equal(typeof core.os.machine, 'function', 'core.os.machine')
80 assert.equal(typeof core.os.networkInterfaces, 'function', 'core.os.networkInterfaces')
81 assert.equal(typeof core.os.platform, 'function', 'core.os.platform')
82 assert.equal(typeof core.os.release, 'function', 'core.os.release')
83 assert.equal(typeof core.os.setPriority, 'function', 'core.os.setPriority')
84 assert.equal(typeof core.os.tmpdir, 'function', 'core.os.tmpdir')
85 assert.equal(typeof core.os.totalmem, 'function', 'core.os.totalmem')
86 assert.equal(typeof core.os.type, 'function', 'core.os.type')
87 assert.equal(typeof core.os.uptime, 'function', 'core.os.uptime')
88 assert.equal(typeof core.os.userInfo, 'function', 'core.os.userInfo')
89 assert.equal(typeof core.os.version, 'function', 'core.os.version')
90 assert.equal(typeof core.path, 'object', 'core.path')
91 assert.equal(typeof core.path._makeLong, 'function', 'core.path._makeLong')
92 assert.equal(typeof core.path.basename, 'function', 'core.path.basename')
93 assert.equal(typeof core.path.delimiter, 'string', 'core.path.delimiter')
94 assert.equal(typeof core.path.dirname, 'function', 'core.path.dirname')
95 assert.equal(typeof core.path.extname, 'function', 'core.path.extname')
96 assert.equal(typeof core.path.format, 'function', 'core.path.format')
97 assert.equal(typeof core.path.isAbsolute, 'function', 'core.path.isAbsolute')
98 assert.equal(typeof core.path.join, 'function', 'core.path.join')
99 assert.equal(typeof core.path.matchesGlob, 'function', 'core.path.matchesGlob')
100 assert.equal(typeof core.path.normalize, 'function', 'core.path.normalize')
101 assert.equal(typeof core.path.parse, 'function', 'core.path.parse')
102 assert.equal(typeof core.path.posix, 'object', 'core.path.posix')
103 assert.equal(typeof core.path.relative, 'function', 'core.path.relative')
104 assert.equal(typeof core.path.resolve, 'function', 'core.path.resolve')
105 assert.equal(typeof core.path.sep, 'string', 'core.path.sep')
106 assert.equal(typeof core.path.toNamespacedPath, 'function', 'core.path.toNamespacedPath')
107 assert.equal(typeof core.path.win32, 'object', 'core.path.win32')
108 assert.equal(typeof core.ps, 'object', 'core.ps')
109 assert.equal(typeof core.ps.kill, 'function', 'core.ps.kill')
110 assert.equal(typeof core.ps.lookup, 'function', 'core.ps.lookup')
111 assert.equal(typeof core.ps.lookupSync, 'function', 'core.ps.lookupSync')
112 assert.equal(typeof core.ps.tree, 'function', 'core.ps.tree')
113 assert.equal(typeof core.ps.treeSync, 'function', 'core.ps.treeSync')
114 assert.equal(typeof core.quote, 'function', 'core.quote')
115 assert.equal(typeof core.quotePowerShell, 'function', 'core.quotePowerShell')
116 assert.equal(typeof core.resolveDefaults, 'function', 'core.resolveDefaults')
117 assert.equal(typeof core.syncProcessCwd, 'function', 'core.syncProcessCwd')
118 assert.equal(typeof core.useBash, 'function', 'core.useBash')
119 assert.equal(typeof core.usePowerShell, 'function', 'core.usePowerShell')
120 assert.equal(typeof core.usePwsh, 'function', 'core.usePwsh')
121 assert.equal(typeof core.which, 'function', 'core.which')
122 assert.equal(typeof core.which.sync, 'function', 'core.which.sync')
123 assert.equal(typeof core.within, 'function', 'core.within')
124 })
125})
126
127//prettier-ignore
128describe('cli', () => {
129 test('exports', () => {
130 assert.equal(typeof cli.argv, 'object', 'cli.argv')
131 assert.equal(typeof cli.argv._, 'object', 'cli.argv._')
132 assert.equal(typeof cli.argv.experimental, 'boolean', 'cli.argv.experimental')
133 assert.equal(typeof cli.argv.h, 'boolean', 'cli.argv.h')
134 assert.equal(typeof cli.argv.help, 'boolean', 'cli.argv.help')
135 assert.equal(typeof cli.argv.i, 'boolean', 'cli.argv.i')
136 assert.equal(typeof cli.argv.install, 'boolean', 'cli.argv.install')
137 assert.equal(typeof cli.argv.l, 'boolean', 'cli.argv.l')
138 assert.equal(typeof cli.argv.preferLocal, 'boolean', 'cli.argv.preferLocal')
139 assert.equal(typeof cli.argv.quiet, 'boolean', 'cli.argv.quiet')
140 assert.equal(typeof cli.argv.repl, 'boolean', 'cli.argv.repl')
141 assert.equal(typeof cli.argv.v, 'boolean', 'cli.argv.v')
142 assert.equal(typeof cli.argv.verbose, 'boolean', 'cli.argv.verbose')
143 assert.equal(typeof cli.argv.version, 'boolean', 'cli.argv.version')
144 assert.equal(typeof cli.injectGlobalRequire, 'function', 'cli.injectGlobalRequire')
145 assert.equal(typeof cli.isMain, 'function', 'cli.isMain')
146 assert.equal(typeof cli.main, 'function', 'cli.main')
147 assert.equal(typeof cli.normalizeExt, 'function', 'cli.normalizeExt')
148 assert.equal(typeof cli.printUsage, 'function', 'cli.printUsage')
149 assert.equal(typeof cli.transformMarkdown, 'function', 'cli.transformMarkdown')
150 })
151})
152
153//prettier-ignore
154describe('index', () => {
155 test('exports', () => {
156 assert.equal(typeof index.$, 'function', 'index.$')
157 assert.equal(typeof index.Fail, 'function', 'index.Fail')
158 assert.equal(typeof index.Fail.DOCS_URL, 'string', 'index.Fail.DOCS_URL')
159 assert.equal(typeof index.Fail.ERRNO_CODES, 'object', 'index.Fail.ERRNO_CODES')
160 assert.equal(typeof index.Fail.EXIT_CODES, 'object', 'index.Fail.EXIT_CODES')
161 assert.equal(typeof index.MAML, 'object', 'index.MAML')
162 assert.equal(typeof index.MAML.parse, 'function', 'index.MAML.parse')
163 assert.equal(typeof index.MAML.stringify, 'function', 'index.MAML.stringify')
164 assert.equal(typeof index.ProcessOutput, 'function', 'index.ProcessOutput')
165 assert.equal(typeof index.ProcessOutput.getErrorDetails, 'function', 'index.ProcessOutput.getErrorDetails')
166 assert.equal(typeof index.ProcessOutput.getErrorMessage, 'function', 'index.ProcessOutput.getErrorMessage')
167 assert.equal(typeof index.ProcessOutput.getExitCodeInfo, 'function', 'index.ProcessOutput.getExitCodeInfo')
168 assert.equal(typeof index.ProcessOutput.getExitMessage, 'function', 'index.ProcessOutput.getExitMessage')
169 assert.equal(typeof index.ProcessPromise, 'function', 'index.ProcessPromise')
170 assert.equal(typeof index.ProcessPromise.bus, 'object', 'index.ProcessPromise.bus')
171 assert.equal(typeof index.ProcessPromise.promisifyStream, 'function', 'index.ProcessPromise.promisifyStream')
172 assert.equal(typeof index.VERSION, 'string', 'index.VERSION')
173 assert.equal(typeof index.YAML, 'object', 'index.YAML')
174 assert.equal(typeof index.YAML.Alias, 'function', 'index.YAML.Alias')
175 assert.equal(typeof index.YAML.CST, 'object', 'index.YAML.CST')
176 assert.equal(typeof index.YAML.Composer, 'function', 'index.YAML.Composer')
177 assert.equal(typeof index.YAML.Document, 'function', 'index.YAML.Document')
178 assert.equal(typeof index.YAML.Lexer, 'function', 'index.YAML.Lexer')
179 assert.equal(typeof index.YAML.LineCounter, 'function', 'index.YAML.LineCounter')
180 assert.equal(typeof index.YAML.Pair, 'function', 'index.YAML.Pair')
181 assert.equal(typeof index.YAML.Parser, 'function', 'index.YAML.Parser')
182 assert.equal(typeof index.YAML.Scalar, 'function', 'index.YAML.Scalar')
183 assert.equal(typeof index.YAML.Schema, 'function', 'index.YAML.Schema')
184 assert.equal(typeof index.YAML.YAMLError, 'function', 'index.YAML.YAMLError')
185 assert.equal(typeof index.YAML.YAMLMap, 'function', 'index.YAML.YAMLMap')
186 assert.equal(typeof index.YAML.YAMLParseError, 'function', 'index.YAML.YAMLParseError')
187 assert.equal(typeof index.YAML.YAMLSeq, 'function', 'index.YAML.YAMLSeq')
188 assert.equal(typeof index.YAML.YAMLWarning, 'function', 'index.YAML.YAMLWarning')
189 assert.equal(typeof index.YAML.default, 'object', 'index.YAML.default')
190 assert.equal(typeof index.YAML.isAlias, 'function', 'index.YAML.isAlias')
191 assert.equal(typeof index.YAML.isCollection, 'function', 'index.YAML.isCollection')
192 assert.equal(typeof index.YAML.isDocument, 'function', 'index.YAML.isDocument')
193 assert.equal(typeof index.YAML.isMap, 'function', 'index.YAML.isMap')
194 assert.equal(typeof index.YAML.isNode, 'function', 'index.YAML.isNode')
195 assert.equal(typeof index.YAML.isPair, 'function', 'index.YAML.isPair')
196 assert.equal(typeof index.YAML.isScalar, 'function', 'index.YAML.isScalar')
197 assert.equal(typeof index.YAML.isSeq, 'function', 'index.YAML.isSeq')
198 assert.equal(typeof index.YAML.parse, 'function', 'index.YAML.parse')
199 assert.equal(typeof index.YAML.parseAllDocuments, 'function', 'index.YAML.parseAllDocuments')
200 assert.equal(typeof index.YAML.parseDocument, 'function', 'index.YAML.parseDocument')
201 assert.equal(typeof index.YAML.stringify, 'function', 'index.YAML.stringify')
202 assert.equal(typeof index.YAML.visit, 'function', 'index.YAML.visit')
203 assert.equal(typeof index.YAML.visitAsync, 'function', 'index.YAML.visitAsync')
204 assert.equal(typeof index.argv, 'object', 'index.argv')
205 assert.equal(typeof index.argv._, 'object', 'index.argv._')
206 assert.equal(typeof index.bus, 'object', 'index.bus')
207 assert.equal(typeof index.bus.lock, 'function', 'index.bus.lock')
208 assert.equal(typeof index.bus.override, 'function', 'index.bus.override')
209 assert.equal(typeof index.bus.wrap, 'function', 'index.bus.wrap')
210 assert.equal(typeof index.cd, 'function', 'index.cd')
211 assert.equal(typeof index.chalk, 'function', 'index.chalk')
212 assert.equal(typeof index.chalk.level, 'number', 'index.chalk.level')
213 assert.equal(typeof index.defaults, 'object', 'index.defaults')
214 assert.equal(typeof index.defaults.detached, 'boolean', 'index.defaults.detached')
215 assert.equal(typeof index.defaults.env, 'object', 'index.defaults.env')
216 assert.equal(typeof index.defaults.kill, 'function', 'index.defaults.kill')
217 assert.equal(typeof index.defaults.killSignal, 'string', 'index.defaults.killSignal')
218 assert.equal(typeof index.defaults.log, 'function', 'index.defaults.log')
219 assert.equal(typeof index.defaults.nothrow, 'boolean', 'index.defaults.nothrow')
220 assert.equal(typeof index.defaults.postfix, 'string', 'index.defaults.postfix')
221 assert.equal(typeof index.defaults.preferLocal, 'boolean', 'index.defaults.preferLocal')
222 assert.equal(typeof index.defaults.prefix, 'string', 'index.defaults.prefix')
223 assert.equal(typeof index.defaults.quiet, 'boolean', 'index.defaults.quiet')
224 assert.equal(typeof index.defaults.quote, 'function', 'index.defaults.quote')
225 assert.equal(typeof index.defaults.shell, 'string', 'index.defaults.shell')
226 assert.equal(typeof index.defaults.spawn, 'function', 'index.defaults.spawn')
227 assert.equal(typeof index.defaults.spawnSync, 'function', 'index.defaults.spawnSync')
228 assert.equal(typeof index.defaults.stdio, 'string', 'index.defaults.stdio')
229 assert.equal(typeof index.defaults.sync, 'boolean', 'index.defaults.sync')
230 assert.equal(typeof index.defaults.timeoutSignal, 'string', 'index.defaults.timeoutSignal')
231 assert.equal(typeof index.defaults.verbose, 'boolean', 'index.defaults.verbose')
232 assert.equal(typeof index.dotenv, 'object', 'index.dotenv')
233 assert.equal(typeof index.dotenv.config, 'function', 'index.dotenv.config')
234 assert.equal(typeof index.dotenv.load, 'function', 'index.dotenv.load')
235 assert.equal(typeof index.dotenv.loadSafe, 'function', 'index.dotenv.loadSafe')
236 assert.equal(typeof index.dotenv.parse, 'function', 'index.dotenv.parse')
237 assert.equal(typeof index.dotenv.stringify, 'function', 'index.dotenv.stringify')
238 assert.equal(typeof index.echo, 'function', 'index.echo')
239 assert.equal(typeof index.expBackoff, 'function', 'index.expBackoff')
240 assert.equal(typeof index.fetch, 'function', 'index.fetch')
241 assert.equal(typeof index.fs, 'object', 'index.fs')
242 assert.equal(typeof index.fs.Dir, 'function', 'index.fs.Dir')
243 assert.equal(typeof index.fs.Dirent, 'function', 'index.fs.Dirent')
244 assert.equal(typeof index.fs.FileReadStream, 'function', 'index.fs.FileReadStream')
245 assert.equal(typeof index.fs.FileWriteStream, 'function', 'index.fs.FileWriteStream')
246 assert.equal(typeof index.fs.ReadStream, 'function', 'index.fs.ReadStream')
247 assert.equal(typeof index.fs.Stats, 'function', 'index.fs.Stats')
248 assert.equal(typeof index.fs.Utf8Stream, 'function', 'index.fs.Utf8Stream')
249 assert.equal(typeof index.fs.WriteStream, 'function', 'index.fs.WriteStream')
250 assert.equal(typeof index.fs._toUnixTimestamp, 'function', 'index.fs._toUnixTimestamp')
251 assert.equal(typeof index.fs.access, 'function', 'index.fs.access')
252 assert.equal(typeof index.fs.accessSync, 'function', 'index.fs.accessSync')
253 assert.equal(typeof index.fs.appendFile, 'function', 'index.fs.appendFile')
254 assert.equal(typeof index.fs.appendFileSync, 'function', 'index.fs.appendFileSync')
255 assert.equal(typeof index.fs.chmod, 'function', 'index.fs.chmod')
256 assert.equal(typeof index.fs.chmodSync, 'function', 'index.fs.chmodSync')
257 assert.equal(typeof index.fs.chown, 'function', 'index.fs.chown')
258 assert.equal(typeof index.fs.chownSync, 'function', 'index.fs.chownSync')
259 assert.equal(typeof index.fs.close, 'function', 'index.fs.close')
260 assert.equal(typeof index.fs.closeSync, 'function', 'index.fs.closeSync')
261 assert.equal(typeof index.fs.constants, 'object', 'index.fs.constants')
262 assert.equal(typeof index.fs.copy, 'function', 'index.fs.copy')
263 assert.equal(typeof index.fs.copyFile, 'function', 'index.fs.copyFile')
264 assert.equal(typeof index.fs.copyFileSync, 'function', 'index.fs.copyFileSync')
265 assert.equal(typeof index.fs.copySync, 'function', 'index.fs.copySync')
266 assert.equal(typeof index.fs.cp, 'function', 'index.fs.cp')
267 assert.equal(typeof index.fs.cpSync, 'function', 'index.fs.cpSync')
268 assert.equal(typeof index.fs.createFile, 'function', 'index.fs.createFile')
269 assert.equal(typeof index.fs.createFileSync, 'function', 'index.fs.createFileSync')
270 assert.equal(typeof index.fs.createLink, 'function', 'index.fs.createLink')
271 assert.equal(typeof index.fs.createLinkSync, 'function', 'index.fs.createLinkSync')
272 assert.equal(typeof index.fs.createReadStream, 'function', 'index.fs.createReadStream')
273 assert.equal(typeof index.fs.createSymlink, 'function', 'index.fs.createSymlink')
274 assert.equal(typeof index.fs.createSymlinkSync, 'function', 'index.fs.createSymlinkSync')
275 assert.equal(typeof index.fs.createWriteStream, 'function', 'index.fs.createWriteStream')
276 assert.equal(typeof index.fs.default, 'object', 'index.fs.default')
277 assert.equal(typeof index.fs.emptyDir, 'function', 'index.fs.emptyDir')
278 assert.equal(typeof index.fs.emptyDirSync, 'function', 'index.fs.emptyDirSync')
279 assert.equal(typeof index.fs.emptydir, 'function', 'index.fs.emptydir')
280 assert.equal(typeof index.fs.emptydirSync, 'function', 'index.fs.emptydirSync')
281 assert.equal(typeof index.fs.ensureDir, 'function', 'index.fs.ensureDir')
282 assert.equal(typeof index.fs.ensureDirSync, 'function', 'index.fs.ensureDirSync')
283 assert.equal(typeof index.fs.ensureFile, 'function', 'index.fs.ensureFile')
284 assert.equal(typeof index.fs.ensureFileSync, 'function', 'index.fs.ensureFileSync')
285 assert.equal(typeof index.fs.ensureLink, 'function', 'index.fs.ensureLink')
286 assert.equal(typeof index.fs.ensureLinkSync, 'function', 'index.fs.ensureLinkSync')
287 assert.equal(typeof index.fs.ensureSymlink, 'function', 'index.fs.ensureSymlink')
288 assert.equal(typeof index.fs.ensureSymlinkSync, 'function', 'index.fs.ensureSymlinkSync')
289 assert.equal(typeof index.fs.exists, 'function', 'index.fs.exists')
290 assert.equal(typeof index.fs.existsSync, 'function', 'index.fs.existsSync')
291 assert.equal(typeof index.fs.fchmod, 'function', 'index.fs.fchmod')
292 assert.equal(typeof index.fs.fchmodSync, 'function', 'index.fs.fchmodSync')
293 assert.equal(typeof index.fs.fchown, 'function', 'index.fs.fchown')
294 assert.equal(typeof index.fs.fchownSync, 'function', 'index.fs.fchownSync')
295 assert.equal(typeof index.fs.fdatasync, 'function', 'index.fs.fdatasync')
296 assert.equal(typeof index.fs.fdatasyncSync, 'function', 'index.fs.fdatasyncSync')
297 assert.equal(typeof index.fs.fstat, 'function', 'index.fs.fstat')
298 assert.equal(typeof index.fs.fstatSync, 'function', 'index.fs.fstatSync')
299 assert.equal(typeof index.fs.fsync, 'function', 'index.fs.fsync')
300 assert.equal(typeof index.fs.fsyncSync, 'function', 'index.fs.fsyncSync')
301 assert.equal(typeof index.fs.ftruncate, 'function', 'index.fs.ftruncate')
302 assert.equal(typeof index.fs.ftruncateSync, 'function', 'index.fs.ftruncateSync')
303 assert.equal(typeof index.fs.futimes, 'function', 'index.fs.futimes')
304 assert.equal(typeof index.fs.futimesSync, 'function', 'index.fs.futimesSync')
305 assert.equal(typeof index.fs.glob, 'function', 'index.fs.glob')
306 assert.equal(typeof index.fs.globSync, 'function', 'index.fs.globSync')
307 assert.equal(typeof index.fs.gracefulify, 'function', 'index.fs.gracefulify')
308 assert.equal(typeof index.fs.lchmod, 'function', 'index.fs.lchmod')
309 assert.equal(typeof index.fs.lchmodSync, 'function', 'index.fs.lchmodSync')
310 assert.equal(typeof index.fs.lchown, 'function', 'index.fs.lchown')
311 assert.equal(typeof index.fs.lchownSync, 'function', 'index.fs.lchownSync')
312 assert.equal(typeof index.fs.link, 'function', 'index.fs.link')
313 assert.equal(typeof index.fs.linkSync, 'function', 'index.fs.linkSync')
314 assert.equal(typeof index.fs.lstat, 'function', 'index.fs.lstat')
315 assert.equal(typeof index.fs.lstatSync, 'function', 'index.fs.lstatSync')
316 assert.equal(typeof index.fs.lutimes, 'function', 'index.fs.lutimes')
317 assert.equal(typeof index.fs.lutimesSync, 'function', 'index.fs.lutimesSync')
318 assert.equal(typeof index.fs.mkdir, 'function', 'index.fs.mkdir')
319 assert.equal(typeof index.fs.mkdirSync, 'function', 'index.fs.mkdirSync')
320 assert.equal(typeof index.fs.mkdirp, 'function', 'index.fs.mkdirp')
321 assert.equal(typeof index.fs.mkdirpSync, 'function', 'index.fs.mkdirpSync')
322 assert.equal(typeof index.fs.mkdirs, 'function', 'index.fs.mkdirs')
323 assert.equal(typeof index.fs.mkdirsSync, 'function', 'index.fs.mkdirsSync')
324 assert.equal(typeof index.fs.mkdtemp, 'function', 'index.fs.mkdtemp')
325 assert.equal(typeof index.fs.mkdtempDisposableSync, 'function', 'index.fs.mkdtempDisposableSync')
326 assert.equal(typeof index.fs.mkdtempSync, 'function', 'index.fs.mkdtempSync')
327 assert.equal(typeof index.fs.move, 'function', 'index.fs.move')
328 assert.equal(typeof index.fs.moveSync, 'function', 'index.fs.moveSync')
329 assert.equal(typeof index.fs.open, 'function', 'index.fs.open')
330 assert.equal(typeof index.fs.openAsBlob, 'function', 'index.fs.openAsBlob')
331 assert.equal(typeof index.fs.openSync, 'function', 'index.fs.openSync')
332 assert.equal(typeof index.fs.opendir, 'function', 'index.fs.opendir')
333 assert.equal(typeof index.fs.opendirSync, 'function', 'index.fs.opendirSync')
334 assert.equal(typeof index.fs.outputFile, 'function', 'index.fs.outputFile')
335 assert.equal(typeof index.fs.outputFileSync, 'function', 'index.fs.outputFileSync')
336 assert.equal(typeof index.fs.outputJSON, 'function', 'index.fs.outputJSON')
337 assert.equal(typeof index.fs.outputJSONSync, 'function', 'index.fs.outputJSONSync')
338 assert.equal(typeof index.fs.outputJson, 'function', 'index.fs.outputJson')
339 assert.equal(typeof index.fs.outputJsonSync, 'function', 'index.fs.outputJsonSync')
340 assert.equal(typeof index.fs.pathExists, 'function', 'index.fs.pathExists')
341 assert.equal(typeof index.fs.pathExistsSync, 'function', 'index.fs.pathExistsSync')
342 assert.equal(typeof index.fs.promises, 'object', 'index.fs.promises')
343 assert.equal(typeof index.fs.read, 'function', 'index.fs.read')
344 assert.equal(typeof index.fs.readFile, 'function', 'index.fs.readFile')
345 assert.equal(typeof index.fs.readFileSync, 'function', 'index.fs.readFileSync')
346 assert.equal(typeof index.fs.readJSON, 'function', 'index.fs.readJSON')
347 assert.equal(typeof index.fs.readJSONSync, 'function', 'index.fs.readJSONSync')
348 assert.equal(typeof index.fs.readJson, 'function', 'index.fs.readJson')
349 assert.equal(typeof index.fs.readJsonSync, 'function', 'index.fs.readJsonSync')
350 assert.equal(typeof index.fs.readSync, 'function', 'index.fs.readSync')
351 assert.equal(typeof index.fs.readdir, 'function', 'index.fs.readdir')
352 assert.equal(typeof index.fs.readdirSync, 'function', 'index.fs.readdirSync')
353 assert.equal(typeof index.fs.readlink, 'function', 'index.fs.readlink')
354 assert.equal(typeof index.fs.readlinkSync, 'function', 'index.fs.readlinkSync')
355 assert.equal(typeof index.fs.readv, 'function', 'index.fs.readv')
356 assert.equal(typeof index.fs.readvSync, 'function', 'index.fs.readvSync')
357 assert.equal(typeof index.fs.realpath, 'function', 'index.fs.realpath')
358 assert.equal(typeof index.fs.realpathSync, 'function', 'index.fs.realpathSync')
359 assert.equal(typeof index.fs.remove, 'function', 'index.fs.remove')
360 assert.equal(typeof index.fs.removeSync, 'function', 'index.fs.removeSync')
361 assert.equal(typeof index.fs.rename, 'function', 'index.fs.rename')
362 assert.equal(typeof index.fs.renameSync, 'function', 'index.fs.renameSync')
363 assert.equal(typeof index.fs.rm, 'function', 'index.fs.rm')
364 assert.equal(typeof index.fs.rmSync, 'function', 'index.fs.rmSync')
365 assert.equal(typeof index.fs.rmdir, 'function', 'index.fs.rmdir')
366 assert.equal(typeof index.fs.rmdirSync, 'function', 'index.fs.rmdirSync')
367 assert.equal(typeof index.fs.stat, 'function', 'index.fs.stat')
368 assert.equal(typeof index.fs.statSync, 'function', 'index.fs.statSync')
369 assert.equal(typeof index.fs.statfs, 'function', 'index.fs.statfs')
370 assert.equal(typeof index.fs.statfsSync, 'function', 'index.fs.statfsSync')
371 assert.equal(typeof index.fs.symlink, 'function', 'index.fs.symlink')
372 assert.equal(typeof index.fs.symlinkSync, 'function', 'index.fs.symlinkSync')
373 assert.equal(typeof index.fs.truncate, 'function', 'index.fs.truncate')
374 assert.equal(typeof index.fs.truncateSync, 'function', 'index.fs.truncateSync')
375 assert.equal(typeof index.fs.unlink, 'function', 'index.fs.unlink')
376 assert.equal(typeof index.fs.unlinkSync, 'function', 'index.fs.unlinkSync')
377 assert.equal(typeof index.fs.unwatchFile, 'function', 'index.fs.unwatchFile')
378 assert.equal(typeof index.fs.utimes, 'function', 'index.fs.utimes')
379 assert.equal(typeof index.fs.utimesSync, 'function', 'index.fs.utimesSync')
380 assert.equal(typeof index.fs.watch, 'function', 'index.fs.watch')
381 assert.equal(typeof index.fs.watchFile, 'function', 'index.fs.watchFile')
382 assert.equal(typeof index.fs.write, 'function', 'index.fs.write')
383 assert.equal(typeof index.fs.writeFile, 'function', 'index.fs.writeFile')
384 assert.equal(typeof index.fs.writeFileSync, 'function', 'index.fs.writeFileSync')
385 assert.equal(typeof index.fs.writeJSON, 'function', 'index.fs.writeJSON')
386 assert.equal(typeof index.fs.writeJSONSync, 'function', 'index.fs.writeJSONSync')
387 assert.equal(typeof index.fs.writeJson, 'function', 'index.fs.writeJson')
388 assert.equal(typeof index.fs.writeJsonSync, 'function', 'index.fs.writeJsonSync')
389 assert.equal(typeof index.fs.writeSync, 'function', 'index.fs.writeSync')
390 assert.equal(typeof index.fs.writev, 'function', 'index.fs.writev')
391 assert.equal(typeof index.fs.writevSync, 'function', 'index.fs.writevSync')
392 assert.equal(typeof index.glob, 'function', 'index.glob')
393 assert.equal(typeof index.glob.convertPathToPattern, 'function', 'index.glob.convertPathToPattern')
394 assert.equal(typeof index.glob.generateGlobTasks, 'function', 'index.glob.generateGlobTasks')
395 assert.equal(typeof index.glob.generateGlobTasksSync, 'function', 'index.glob.generateGlobTasksSync')
396 assert.equal(typeof index.glob.globby, 'function', 'index.glob.globby')
397 assert.equal(typeof index.glob.globbyStream, 'function', 'index.glob.globbyStream')
398 assert.equal(typeof index.glob.globbySync, 'function', 'index.glob.globbySync')
399 assert.equal(typeof index.glob.isDynamicPattern, 'function', 'index.glob.isDynamicPattern')
400 assert.equal(typeof index.glob.isGitIgnored, 'function', 'index.glob.isGitIgnored')
401 assert.equal(typeof index.glob.isGitIgnoredSync, 'function', 'index.glob.isGitIgnoredSync')
402 assert.equal(typeof index.glob.sync, 'function', 'index.glob.sync')
403 assert.equal(typeof index.globby, 'function', 'index.globby')
404 assert.equal(typeof index.globby.convertPathToPattern, 'function', 'index.globby.convertPathToPattern')
405 assert.equal(typeof index.globby.generateGlobTasks, 'function', 'index.globby.generateGlobTasks')
406 assert.equal(typeof index.globby.generateGlobTasksSync, 'function', 'index.globby.generateGlobTasksSync')
407 assert.equal(typeof index.globby.globby, 'function', 'index.globby.globby')
408 assert.equal(typeof index.globby.globbyStream, 'function', 'index.globby.globbyStream')
409 assert.equal(typeof index.globby.globbySync, 'function', 'index.globby.globbySync')
410 assert.equal(typeof index.globby.isDynamicPattern, 'function', 'index.globby.isDynamicPattern')
411 assert.equal(typeof index.globby.isGitIgnored, 'function', 'index.globby.isGitIgnored')
412 assert.equal(typeof index.globby.isGitIgnoredSync, 'function', 'index.globby.isGitIgnoredSync')
413 assert.equal(typeof index.globby.sync, 'function', 'index.globby.sync')
414 assert.equal(typeof index.kill, 'function', 'index.kill')
415 assert.equal(typeof index.log, 'function', 'index.log')
416 assert.equal(typeof index.minimist, 'function', 'index.minimist')
417 assert.equal(typeof index.nothrow, 'function', 'index.nothrow')
418 assert.equal(typeof index.os, 'object', 'index.os')
419 assert.equal(typeof index.os.EOL, 'string', 'index.os.EOL')
420 assert.equal(typeof index.os.arch, 'function', 'index.os.arch')
421 assert.equal(typeof index.os.availableParallelism, 'function', 'index.os.availableParallelism')
422 assert.equal(typeof index.os.constants, 'object', 'index.os.constants')
423 assert.equal(typeof index.os.cpus, 'function', 'index.os.cpus')
424 assert.equal(typeof index.os.default, 'object', 'index.os.default')
425 assert.equal(typeof index.os.devNull, 'string', 'index.os.devNull')
426 assert.equal(typeof index.os.endianness, 'function', 'index.os.endianness')
427 assert.equal(typeof index.os.freemem, 'function', 'index.os.freemem')
428 assert.equal(typeof index.os.getPriority, 'function', 'index.os.getPriority')
429 assert.equal(typeof index.os.homedir, 'function', 'index.os.homedir')
430 assert.equal(typeof index.os.hostname, 'function', 'index.os.hostname')
431 assert.equal(typeof index.os.loadavg, 'function', 'index.os.loadavg')
432 assert.equal(typeof index.os.machine, 'function', 'index.os.machine')
433 assert.equal(typeof index.os.networkInterfaces, 'function', 'index.os.networkInterfaces')
434 assert.equal(typeof index.os.platform, 'function', 'index.os.platform')
435 assert.equal(typeof index.os.release, 'function', 'index.os.release')
436 assert.equal(typeof index.os.setPriority, 'function', 'index.os.setPriority')
437 assert.equal(typeof index.os.tmpdir, 'function', 'index.os.tmpdir')
438 assert.equal(typeof index.os.totalmem, 'function', 'index.os.totalmem')
439 assert.equal(typeof index.os.type, 'function', 'index.os.type')
440 assert.equal(typeof index.os.uptime, 'function', 'index.os.uptime')
441 assert.equal(typeof index.os.userInfo, 'function', 'index.os.userInfo')
442 assert.equal(typeof index.os.version, 'function', 'index.os.version')
443 assert.equal(typeof index.parseArgv, 'function', 'index.parseArgv')
444 assert.equal(typeof index.path, 'object', 'index.path')
445 assert.equal(typeof index.path._makeLong, 'function', 'index.path._makeLong')
446 assert.equal(typeof index.path.basename, 'function', 'index.path.basename')
447 assert.equal(typeof index.path.delimiter, 'string', 'index.path.delimiter')
448 assert.equal(typeof index.path.dirname, 'function', 'index.path.dirname')
449 assert.equal(typeof index.path.extname, 'function', 'index.path.extname')
450 assert.equal(typeof index.path.format, 'function', 'index.path.format')
451 assert.equal(typeof index.path.isAbsolute, 'function', 'index.path.isAbsolute')
452 assert.equal(typeof index.path.join, 'function', 'index.path.join')
453 assert.equal(typeof index.path.matchesGlob, 'function', 'index.path.matchesGlob')
454 assert.equal(typeof index.path.normalize, 'function', 'index.path.normalize')
455 assert.equal(typeof index.path.parse, 'function', 'index.path.parse')
456 assert.equal(typeof index.path.posix, 'object', 'index.path.posix')
457 assert.equal(typeof index.path.relative, 'function', 'index.path.relative')
458 assert.equal(typeof index.path.resolve, 'function', 'index.path.resolve')
459 assert.equal(typeof index.path.sep, 'string', 'index.path.sep')
460 assert.equal(typeof index.path.toNamespacedPath, 'function', 'index.path.toNamespacedPath')
461 assert.equal(typeof index.path.win32, 'object', 'index.path.win32')
462 assert.equal(typeof index.ps, 'object', 'index.ps')
463 assert.equal(typeof index.ps.kill, 'function', 'index.ps.kill')
464 assert.equal(typeof index.ps.lookup, 'function', 'index.ps.lookup')
465 assert.equal(typeof index.ps.lookupSync, 'function', 'index.ps.lookupSync')
466 assert.equal(typeof index.ps.tree, 'function', 'index.ps.tree')
467 assert.equal(typeof index.ps.treeSync, 'function', 'index.ps.treeSync')
468 assert.equal(typeof index.question, 'function', 'index.question')
469 assert.equal(typeof index.quiet, 'function', 'index.quiet')
470 assert.equal(typeof index.quote, 'function', 'index.quote')
471 assert.equal(typeof index.quotePowerShell, 'function', 'index.quotePowerShell')
472 assert.equal(typeof index.resolveDefaults, 'function', 'index.resolveDefaults')
473 assert.equal(typeof index.retry, 'function', 'index.retry')
474 assert.equal(typeof index.sleep, 'function', 'index.sleep')
475 assert.equal(typeof index.spinner, 'function', 'index.spinner')
476 assert.equal(typeof index.stdin, 'function', 'index.stdin')
477 assert.equal(typeof index.syncProcessCwd, 'function', 'index.syncProcessCwd')
478 assert.equal(typeof index.tempdir, 'function', 'index.tempdir')
479 assert.equal(typeof index.tempfile, 'function', 'index.tempfile')
480 assert.equal(typeof index.tmpdir, 'function', 'index.tmpdir')
481 assert.equal(typeof index.tmpfile, 'function', 'index.tmpfile')
482 assert.equal(typeof index.updateArgv, 'function', 'index.updateArgv')
483 assert.equal(typeof index.useBash, 'function', 'index.useBash')
484 assert.equal(typeof index.usePowerShell, 'function', 'index.usePowerShell')
485 assert.equal(typeof index.usePwsh, 'function', 'index.usePwsh')
486 assert.equal(typeof index.version, 'string', 'index.version')
487 assert.equal(typeof index.versions, 'object', 'index.versions')
488 assert.equal(typeof index.versions.chalk, 'string', 'index.versions.chalk')
489 assert.equal(typeof index.versions.depseek, 'string', 'index.versions.depseek')
490 assert.equal(typeof index.versions.dotenv, 'string', 'index.versions.dotenv')
491 assert.equal(typeof index.versions.fetch, 'string', 'index.versions.fetch')
492 assert.equal(typeof index.versions.fs, 'string', 'index.versions.fs')
493 assert.equal(typeof index.versions.glob, 'string', 'index.versions.glob')
494 assert.equal(typeof index.versions.minimist, 'string', 'index.versions.minimist')
495 assert.equal(typeof index.versions.ps, 'string', 'index.versions.ps')
496 assert.equal(typeof index.versions.which, 'string', 'index.versions.which')
497 assert.equal(typeof index.versions.yaml, 'string', 'index.versions.yaml')
498 assert.equal(typeof index.versions.zx, 'string', 'index.versions.zx')
499 assert.equal(typeof index.which, 'function', 'index.which')
500 assert.equal(typeof index.which.sync, 'function', 'index.which.sync')
501 assert.equal(typeof index.within, 'function', 'index.within')
502 })
503})