Files
zx/test/export.test.js

505 lines
36 KiB
JavaScript

// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import assert from 'node:assert'
import { test, describe } from 'node:test'
import * as core from '../build/core.cjs'
import * as cli from '../build/cli.cjs'
import * as index from '../build/index.cjs'
//prettier-ignore
describe('core', () => {
test('exports', () => {
assert.equal(typeof core.$, 'function', 'core.$')
assert.equal(typeof core.Fail, 'function', 'core.Fail')
assert.equal(typeof core.Fail.DOCS_URL, 'string', 'core.Fail.DOCS_URL')
assert.equal(typeof core.Fail.ERRNO_CODES, 'object', 'core.Fail.ERRNO_CODES')
assert.equal(typeof core.Fail.EXIT_CODES, 'object', 'core.Fail.EXIT_CODES')
assert.equal(typeof core.ProcessOutput, 'function', 'core.ProcessOutput')
assert.equal(typeof core.ProcessOutput.getErrorDetails, 'function', 'core.ProcessOutput.getErrorDetails')
assert.equal(typeof core.ProcessOutput.getErrorMessage, 'function', 'core.ProcessOutput.getErrorMessage')
assert.equal(typeof core.ProcessOutput.getExitCodeInfo, 'function', 'core.ProcessOutput.getExitCodeInfo')
assert.equal(typeof core.ProcessOutput.getExitMessage, 'function', 'core.ProcessOutput.getExitMessage')
assert.equal(typeof core.ProcessPromise, 'function', 'core.ProcessPromise')
assert.equal(typeof core.ProcessPromise.bus, 'object', 'core.ProcessPromise.bus')
assert.equal(typeof core.ProcessPromise.promisifyStream, 'function', 'core.ProcessPromise.promisifyStream')
assert.equal(typeof core.bus, 'object', 'core.bus')
assert.equal(typeof core.bus.lock, 'function', 'core.bus.lock')
assert.equal(typeof core.bus.override, 'function', 'core.bus.override')
assert.equal(typeof core.bus.wrap, 'function', 'core.bus.wrap')
assert.equal(typeof core.cd, 'function', 'core.cd')
assert.equal(typeof core.chalk, 'function', 'core.chalk')
assert.equal(typeof core.chalk.level, 'number', 'core.chalk.level')
assert.equal(typeof core.defaults, 'object', 'core.defaults')
assert.equal(typeof core.defaults.detached, 'boolean', 'core.defaults.detached')
assert.equal(typeof core.defaults.env, 'object', 'core.defaults.env')
assert.equal(typeof core.defaults.kill, 'function', 'core.defaults.kill')
assert.equal(typeof core.defaults.killSignal, 'string', 'core.defaults.killSignal')
assert.equal(typeof core.defaults.log, 'function', 'core.defaults.log')
assert.equal(typeof core.defaults.nothrow, 'boolean', 'core.defaults.nothrow')
assert.equal(typeof core.defaults.postfix, 'string', 'core.defaults.postfix')
assert.equal(typeof core.defaults.preferLocal, 'boolean', 'core.defaults.preferLocal')
assert.equal(typeof core.defaults.prefix, 'string', 'core.defaults.prefix')
assert.equal(typeof core.defaults.quiet, 'boolean', 'core.defaults.quiet')
assert.equal(typeof core.defaults.quote, 'function', 'core.defaults.quote')
assert.equal(typeof core.defaults.shell, 'string', 'core.defaults.shell')
assert.equal(typeof core.defaults.spawn, 'function', 'core.defaults.spawn')
assert.equal(typeof core.defaults.spawnSync, 'function', 'core.defaults.spawnSync')
assert.equal(typeof core.defaults.stdio, 'string', 'core.defaults.stdio')
assert.equal(typeof core.defaults.sync, 'boolean', 'core.defaults.sync')
assert.equal(typeof core.defaults.timeoutSignal, 'string', 'core.defaults.timeoutSignal')
assert.equal(typeof core.defaults.verbose, 'boolean', 'core.defaults.verbose')
assert.equal(typeof core.kill, 'function', 'core.kill')
assert.equal(typeof core.log, 'function', 'core.log')
assert.equal(typeof core.os, 'object', 'core.os')
assert.equal(typeof core.os.EOL, 'string', 'core.os.EOL')
assert.equal(typeof core.os.arch, 'function', 'core.os.arch')
assert.equal(typeof core.os.availableParallelism, 'function', 'core.os.availableParallelism')
assert.equal(typeof core.os.constants, 'object', 'core.os.constants')
assert.equal(typeof core.os.cpus, 'function', 'core.os.cpus')
assert.equal(typeof core.os.default, 'object', 'core.os.default')
assert.equal(typeof core.os.devNull, 'string', 'core.os.devNull')
assert.equal(typeof core.os.endianness, 'function', 'core.os.endianness')
assert.equal(typeof core.os.freemem, 'function', 'core.os.freemem')
assert.equal(typeof core.os.getPriority, 'function', 'core.os.getPriority')
assert.equal(typeof core.os.homedir, 'function', 'core.os.homedir')
assert.equal(typeof core.os.hostname, 'function', 'core.os.hostname')
assert.equal(typeof core.os.loadavg, 'function', 'core.os.loadavg')
assert.equal(typeof core.os.machine, 'function', 'core.os.machine')
assert.equal(typeof core.os.networkInterfaces, 'function', 'core.os.networkInterfaces')
assert.equal(typeof core.os.platform, 'function', 'core.os.platform')
assert.equal(typeof core.os.release, 'function', 'core.os.release')
assert.equal(typeof core.os.setPriority, 'function', 'core.os.setPriority')
assert.equal(typeof core.os.tmpdir, 'function', 'core.os.tmpdir')
assert.equal(typeof core.os.totalmem, 'function', 'core.os.totalmem')
assert.equal(typeof core.os.type, 'function', 'core.os.type')
assert.equal(typeof core.os.uptime, 'function', 'core.os.uptime')
assert.equal(typeof core.os.userInfo, 'function', 'core.os.userInfo')
assert.equal(typeof core.os.version, 'function', 'core.os.version')
assert.equal(typeof core.path, 'object', 'core.path')
assert.equal(typeof core.path._makeLong, 'function', 'core.path._makeLong')
assert.equal(typeof core.path.basename, 'function', 'core.path.basename')
assert.equal(typeof core.path.delimiter, 'string', 'core.path.delimiter')
assert.equal(typeof core.path.dirname, 'function', 'core.path.dirname')
assert.equal(typeof core.path.extname, 'function', 'core.path.extname')
assert.equal(typeof core.path.format, 'function', 'core.path.format')
assert.equal(typeof core.path.isAbsolute, 'function', 'core.path.isAbsolute')
assert.equal(typeof core.path.join, 'function', 'core.path.join')
assert.equal(typeof core.path.matchesGlob, 'function', 'core.path.matchesGlob')
assert.equal(typeof core.path.normalize, 'function', 'core.path.normalize')
assert.equal(typeof core.path.parse, 'function', 'core.path.parse')
assert.equal(typeof core.path.posix, 'object', 'core.path.posix')
assert.equal(typeof core.path.relative, 'function', 'core.path.relative')
assert.equal(typeof core.path.resolve, 'function', 'core.path.resolve')
assert.equal(typeof core.path.sep, 'string', 'core.path.sep')
assert.equal(typeof core.path.toNamespacedPath, 'function', 'core.path.toNamespacedPath')
assert.equal(typeof core.path.win32, 'object', 'core.path.win32')
assert.equal(typeof core.ps, 'object', 'core.ps')
assert.equal(typeof core.ps.kill, 'function', 'core.ps.kill')
assert.equal(typeof core.ps.lookup, 'function', 'core.ps.lookup')
assert.equal(typeof core.ps.lookupSync, 'function', 'core.ps.lookupSync')
assert.equal(typeof core.ps.tree, 'function', 'core.ps.tree')
assert.equal(typeof core.ps.treeSync, 'function', 'core.ps.treeSync')
assert.equal(typeof core.quote, 'function', 'core.quote')
assert.equal(typeof core.quotePowerShell, 'function', 'core.quotePowerShell')
assert.equal(typeof core.resolveDefaults, 'function', 'core.resolveDefaults')
assert.equal(typeof core.syncProcessCwd, 'function', 'core.syncProcessCwd')
assert.equal(typeof core.useBash, 'function', 'core.useBash')
assert.equal(typeof core.usePowerShell, 'function', 'core.usePowerShell')
assert.equal(typeof core.usePwsh, 'function', 'core.usePwsh')
assert.equal(typeof core.which, 'function', 'core.which')
assert.equal(typeof core.which.sync, 'function', 'core.which.sync')
assert.equal(typeof core.within, 'function', 'core.within')
})
})
//prettier-ignore
describe('cli', () => {
test('exports', () => {
assert.equal(typeof cli.argv, 'object', 'cli.argv')
assert.equal(typeof cli.argv._, 'object', 'cli.argv._')
assert.equal(typeof cli.argv.experimental, 'boolean', 'cli.argv.experimental')
assert.equal(typeof cli.argv.h, 'boolean', 'cli.argv.h')
assert.equal(typeof cli.argv.help, 'boolean', 'cli.argv.help')
assert.equal(typeof cli.argv.i, 'boolean', 'cli.argv.i')
assert.equal(typeof cli.argv.install, 'boolean', 'cli.argv.install')
assert.equal(typeof cli.argv.l, 'boolean', 'cli.argv.l')
assert.equal(typeof cli.argv.preferLocal, 'boolean', 'cli.argv.preferLocal')
assert.equal(typeof cli.argv.quiet, 'boolean', 'cli.argv.quiet')
assert.equal(typeof cli.argv.repl, 'boolean', 'cli.argv.repl')
assert.equal(typeof cli.argv.v, 'boolean', 'cli.argv.v')
assert.equal(typeof cli.argv.verbose, 'boolean', 'cli.argv.verbose')
assert.equal(typeof cli.argv.version, 'boolean', 'cli.argv.version')
assert.equal(typeof cli.autorun, 'function', 'cli.autorun')
assert.equal(typeof cli.injectGlobalRequire, 'function', 'cli.injectGlobalRequire')
assert.equal(typeof cli.isMain, 'function', 'cli.isMain')
assert.equal(typeof cli.main, 'function', 'cli.main')
assert.equal(typeof cli.normalizeExt, 'function', 'cli.normalizeExt')
assert.equal(typeof cli.printUsage, 'function', 'cli.printUsage')
assert.equal(typeof cli.transformMarkdown, 'function', 'cli.transformMarkdown')
})
})
//prettier-ignore
describe('index', () => {
test('exports', () => {
assert.equal(typeof index.$, 'function', 'index.$')
assert.equal(typeof index.Fail, 'function', 'index.Fail')
assert.equal(typeof index.Fail.DOCS_URL, 'string', 'index.Fail.DOCS_URL')
assert.equal(typeof index.Fail.ERRNO_CODES, 'object', 'index.Fail.ERRNO_CODES')
assert.equal(typeof index.Fail.EXIT_CODES, 'object', 'index.Fail.EXIT_CODES')
assert.equal(typeof index.MAML, 'object', 'index.MAML')
assert.equal(typeof index.MAML.parse, 'function', 'index.MAML.parse')
assert.equal(typeof index.MAML.stringify, 'function', 'index.MAML.stringify')
assert.equal(typeof index.ProcessOutput, 'function', 'index.ProcessOutput')
assert.equal(typeof index.ProcessOutput.getErrorDetails, 'function', 'index.ProcessOutput.getErrorDetails')
assert.equal(typeof index.ProcessOutput.getErrorMessage, 'function', 'index.ProcessOutput.getErrorMessage')
assert.equal(typeof index.ProcessOutput.getExitCodeInfo, 'function', 'index.ProcessOutput.getExitCodeInfo')
assert.equal(typeof index.ProcessOutput.getExitMessage, 'function', 'index.ProcessOutput.getExitMessage')
assert.equal(typeof index.ProcessPromise, 'function', 'index.ProcessPromise')
assert.equal(typeof index.ProcessPromise.bus, 'object', 'index.ProcessPromise.bus')
assert.equal(typeof index.ProcessPromise.promisifyStream, 'function', 'index.ProcessPromise.promisifyStream')
assert.equal(typeof index.VERSION, 'string', 'index.VERSION')
assert.equal(typeof index.YAML, 'object', 'index.YAML')
assert.equal(typeof index.YAML.Alias, 'function', 'index.YAML.Alias')
assert.equal(typeof index.YAML.CST, 'object', 'index.YAML.CST')
assert.equal(typeof index.YAML.Composer, 'function', 'index.YAML.Composer')
assert.equal(typeof index.YAML.Document, 'function', 'index.YAML.Document')
assert.equal(typeof index.YAML.Lexer, 'function', 'index.YAML.Lexer')
assert.equal(typeof index.YAML.LineCounter, 'function', 'index.YAML.LineCounter')
assert.equal(typeof index.YAML.Pair, 'function', 'index.YAML.Pair')
assert.equal(typeof index.YAML.Parser, 'function', 'index.YAML.Parser')
assert.equal(typeof index.YAML.Scalar, 'function', 'index.YAML.Scalar')
assert.equal(typeof index.YAML.Schema, 'function', 'index.YAML.Schema')
assert.equal(typeof index.YAML.YAMLError, 'function', 'index.YAML.YAMLError')
assert.equal(typeof index.YAML.YAMLMap, 'function', 'index.YAML.YAMLMap')
assert.equal(typeof index.YAML.YAMLParseError, 'function', 'index.YAML.YAMLParseError')
assert.equal(typeof index.YAML.YAMLSeq, 'function', 'index.YAML.YAMLSeq')
assert.equal(typeof index.YAML.YAMLWarning, 'function', 'index.YAML.YAMLWarning')
assert.equal(typeof index.YAML.default, 'object', 'index.YAML.default')
assert.equal(typeof index.YAML.isAlias, 'function', 'index.YAML.isAlias')
assert.equal(typeof index.YAML.isCollection, 'function', 'index.YAML.isCollection')
assert.equal(typeof index.YAML.isDocument, 'function', 'index.YAML.isDocument')
assert.equal(typeof index.YAML.isMap, 'function', 'index.YAML.isMap')
assert.equal(typeof index.YAML.isNode, 'function', 'index.YAML.isNode')
assert.equal(typeof index.YAML.isPair, 'function', 'index.YAML.isPair')
assert.equal(typeof index.YAML.isScalar, 'function', 'index.YAML.isScalar')
assert.equal(typeof index.YAML.isSeq, 'function', 'index.YAML.isSeq')
assert.equal(typeof index.YAML.parse, 'function', 'index.YAML.parse')
assert.equal(typeof index.YAML.parseAllDocuments, 'function', 'index.YAML.parseAllDocuments')
assert.equal(typeof index.YAML.parseDocument, 'function', 'index.YAML.parseDocument')
assert.equal(typeof index.YAML.stringify, 'function', 'index.YAML.stringify')
assert.equal(typeof index.YAML.visit, 'function', 'index.YAML.visit')
assert.equal(typeof index.YAML.visitAsync, 'function', 'index.YAML.visitAsync')
assert.equal(typeof index.argv, 'object', 'index.argv')
assert.equal(typeof index.argv._, 'object', 'index.argv._')
assert.equal(typeof index.bus, 'object', 'index.bus')
assert.equal(typeof index.bus.lock, 'function', 'index.bus.lock')
assert.equal(typeof index.bus.override, 'function', 'index.bus.override')
assert.equal(typeof index.bus.wrap, 'function', 'index.bus.wrap')
assert.equal(typeof index.cd, 'function', 'index.cd')
assert.equal(typeof index.chalk, 'function', 'index.chalk')
assert.equal(typeof index.chalk.level, 'number', 'index.chalk.level')
assert.equal(typeof index.defaults, 'object', 'index.defaults')
assert.equal(typeof index.defaults.detached, 'boolean', 'index.defaults.detached')
assert.equal(typeof index.defaults.env, 'object', 'index.defaults.env')
assert.equal(typeof index.defaults.kill, 'function', 'index.defaults.kill')
assert.equal(typeof index.defaults.killSignal, 'string', 'index.defaults.killSignal')
assert.equal(typeof index.defaults.log, 'function', 'index.defaults.log')
assert.equal(typeof index.defaults.nothrow, 'boolean', 'index.defaults.nothrow')
assert.equal(typeof index.defaults.postfix, 'string', 'index.defaults.postfix')
assert.equal(typeof index.defaults.preferLocal, 'boolean', 'index.defaults.preferLocal')
assert.equal(typeof index.defaults.prefix, 'string', 'index.defaults.prefix')
assert.equal(typeof index.defaults.quiet, 'boolean', 'index.defaults.quiet')
assert.equal(typeof index.defaults.quote, 'function', 'index.defaults.quote')
assert.equal(typeof index.defaults.shell, 'string', 'index.defaults.shell')
assert.equal(typeof index.defaults.spawn, 'function', 'index.defaults.spawn')
assert.equal(typeof index.defaults.spawnSync, 'function', 'index.defaults.spawnSync')
assert.equal(typeof index.defaults.stdio, 'string', 'index.defaults.stdio')
assert.equal(typeof index.defaults.sync, 'boolean', 'index.defaults.sync')
assert.equal(typeof index.defaults.timeoutSignal, 'string', 'index.defaults.timeoutSignal')
assert.equal(typeof index.defaults.verbose, 'boolean', 'index.defaults.verbose')
assert.equal(typeof index.dotenv, 'object', 'index.dotenv')
assert.equal(typeof index.dotenv.config, 'function', 'index.dotenv.config')
assert.equal(typeof index.dotenv.load, 'function', 'index.dotenv.load')
assert.equal(typeof index.dotenv.loadSafe, 'function', 'index.dotenv.loadSafe')
assert.equal(typeof index.dotenv.parse, 'function', 'index.dotenv.parse')
assert.equal(typeof index.dotenv.stringify, 'function', 'index.dotenv.stringify')
assert.equal(typeof index.echo, 'function', 'index.echo')
assert.equal(typeof index.expBackoff, 'function', 'index.expBackoff')
assert.equal(typeof index.fetch, 'function', 'index.fetch')
assert.equal(typeof index.fs, 'object', 'index.fs')
assert.equal(typeof index.fs.Dir, 'function', 'index.fs.Dir')
assert.equal(typeof index.fs.Dirent, 'function', 'index.fs.Dirent')
assert.equal(typeof index.fs.FileReadStream, 'function', 'index.fs.FileReadStream')
assert.equal(typeof index.fs.FileWriteStream, 'function', 'index.fs.FileWriteStream')
assert.equal(typeof index.fs.ReadStream, 'function', 'index.fs.ReadStream')
assert.equal(typeof index.fs.Stats, 'function', 'index.fs.Stats')
assert.equal(typeof index.fs.Utf8Stream, 'function', 'index.fs.Utf8Stream')
assert.equal(typeof index.fs.WriteStream, 'function', 'index.fs.WriteStream')
assert.equal(typeof index.fs._toUnixTimestamp, 'function', 'index.fs._toUnixTimestamp')
assert.equal(typeof index.fs.access, 'function', 'index.fs.access')
assert.equal(typeof index.fs.accessSync, 'function', 'index.fs.accessSync')
assert.equal(typeof index.fs.appendFile, 'function', 'index.fs.appendFile')
assert.equal(typeof index.fs.appendFileSync, 'function', 'index.fs.appendFileSync')
assert.equal(typeof index.fs.chmod, 'function', 'index.fs.chmod')
assert.equal(typeof index.fs.chmodSync, 'function', 'index.fs.chmodSync')
assert.equal(typeof index.fs.chown, 'function', 'index.fs.chown')
assert.equal(typeof index.fs.chownSync, 'function', 'index.fs.chownSync')
assert.equal(typeof index.fs.close, 'function', 'index.fs.close')
assert.equal(typeof index.fs.closeSync, 'function', 'index.fs.closeSync')
assert.equal(typeof index.fs.constants, 'object', 'index.fs.constants')
assert.equal(typeof index.fs.copy, 'function', 'index.fs.copy')
assert.equal(typeof index.fs.copyFile, 'function', 'index.fs.copyFile')
assert.equal(typeof index.fs.copyFileSync, 'function', 'index.fs.copyFileSync')
assert.equal(typeof index.fs.copySync, 'function', 'index.fs.copySync')
assert.equal(typeof index.fs.cp, 'function', 'index.fs.cp')
assert.equal(typeof index.fs.cpSync, 'function', 'index.fs.cpSync')
assert.equal(typeof index.fs.createFile, 'function', 'index.fs.createFile')
assert.equal(typeof index.fs.createFileSync, 'function', 'index.fs.createFileSync')
assert.equal(typeof index.fs.createLink, 'function', 'index.fs.createLink')
assert.equal(typeof index.fs.createLinkSync, 'function', 'index.fs.createLinkSync')
assert.equal(typeof index.fs.createReadStream, 'function', 'index.fs.createReadStream')
assert.equal(typeof index.fs.createSymlink, 'function', 'index.fs.createSymlink')
assert.equal(typeof index.fs.createSymlinkSync, 'function', 'index.fs.createSymlinkSync')
assert.equal(typeof index.fs.createWriteStream, 'function', 'index.fs.createWriteStream')
assert.equal(typeof index.fs.default, 'object', 'index.fs.default')
assert.equal(typeof index.fs.emptyDir, 'function', 'index.fs.emptyDir')
assert.equal(typeof index.fs.emptyDirSync, 'function', 'index.fs.emptyDirSync')
assert.equal(typeof index.fs.emptydir, 'function', 'index.fs.emptydir')
assert.equal(typeof index.fs.emptydirSync, 'function', 'index.fs.emptydirSync')
assert.equal(typeof index.fs.ensureDir, 'function', 'index.fs.ensureDir')
assert.equal(typeof index.fs.ensureDirSync, 'function', 'index.fs.ensureDirSync')
assert.equal(typeof index.fs.ensureFile, 'function', 'index.fs.ensureFile')
assert.equal(typeof index.fs.ensureFileSync, 'function', 'index.fs.ensureFileSync')
assert.equal(typeof index.fs.ensureLink, 'function', 'index.fs.ensureLink')
assert.equal(typeof index.fs.ensureLinkSync, 'function', 'index.fs.ensureLinkSync')
assert.equal(typeof index.fs.ensureSymlink, 'function', 'index.fs.ensureSymlink')
assert.equal(typeof index.fs.ensureSymlinkSync, 'function', 'index.fs.ensureSymlinkSync')
assert.equal(typeof index.fs.exists, 'function', 'index.fs.exists')
assert.equal(typeof index.fs.existsSync, 'function', 'index.fs.existsSync')
assert.equal(typeof index.fs.fchmod, 'function', 'index.fs.fchmod')
assert.equal(typeof index.fs.fchmodSync, 'function', 'index.fs.fchmodSync')
assert.equal(typeof index.fs.fchown, 'function', 'index.fs.fchown')
assert.equal(typeof index.fs.fchownSync, 'function', 'index.fs.fchownSync')
assert.equal(typeof index.fs.fdatasync, 'function', 'index.fs.fdatasync')
assert.equal(typeof index.fs.fdatasyncSync, 'function', 'index.fs.fdatasyncSync')
assert.equal(typeof index.fs.fstat, 'function', 'index.fs.fstat')
assert.equal(typeof index.fs.fstatSync, 'function', 'index.fs.fstatSync')
assert.equal(typeof index.fs.fsync, 'function', 'index.fs.fsync')
assert.equal(typeof index.fs.fsyncSync, 'function', 'index.fs.fsyncSync')
assert.equal(typeof index.fs.ftruncate, 'function', 'index.fs.ftruncate')
assert.equal(typeof index.fs.ftruncateSync, 'function', 'index.fs.ftruncateSync')
assert.equal(typeof index.fs.futimes, 'function', 'index.fs.futimes')
assert.equal(typeof index.fs.futimesSync, 'function', 'index.fs.futimesSync')
assert.equal(typeof index.fs.glob, 'function', 'index.fs.glob')
assert.equal(typeof index.fs.globSync, 'function', 'index.fs.globSync')
assert.equal(typeof index.fs.gracefulify, 'function', 'index.fs.gracefulify')
assert.equal(typeof index.fs.lchmod, 'function', 'index.fs.lchmod')
assert.equal(typeof index.fs.lchmodSync, 'function', 'index.fs.lchmodSync')
assert.equal(typeof index.fs.lchown, 'function', 'index.fs.lchown')
assert.equal(typeof index.fs.lchownSync, 'function', 'index.fs.lchownSync')
assert.equal(typeof index.fs.link, 'function', 'index.fs.link')
assert.equal(typeof index.fs.linkSync, 'function', 'index.fs.linkSync')
assert.equal(typeof index.fs.lstat, 'function', 'index.fs.lstat')
assert.equal(typeof index.fs.lstatSync, 'function', 'index.fs.lstatSync')
assert.equal(typeof index.fs.lutimes, 'function', 'index.fs.lutimes')
assert.equal(typeof index.fs.lutimesSync, 'function', 'index.fs.lutimesSync')
assert.equal(typeof index.fs.mkdir, 'function', 'index.fs.mkdir')
assert.equal(typeof index.fs.mkdirSync, 'function', 'index.fs.mkdirSync')
assert.equal(typeof index.fs.mkdirp, 'function', 'index.fs.mkdirp')
assert.equal(typeof index.fs.mkdirpSync, 'function', 'index.fs.mkdirpSync')
assert.equal(typeof index.fs.mkdirs, 'function', 'index.fs.mkdirs')
assert.equal(typeof index.fs.mkdirsSync, 'function', 'index.fs.mkdirsSync')
assert.equal(typeof index.fs.mkdtemp, 'function', 'index.fs.mkdtemp')
assert.equal(typeof index.fs.mkdtempDisposableSync, 'function', 'index.fs.mkdtempDisposableSync')
assert.equal(typeof index.fs.mkdtempSync, 'function', 'index.fs.mkdtempSync')
assert.equal(typeof index.fs.move, 'function', 'index.fs.move')
assert.equal(typeof index.fs.moveSync, 'function', 'index.fs.moveSync')
assert.equal(typeof index.fs.open, 'function', 'index.fs.open')
assert.equal(typeof index.fs.openAsBlob, 'function', 'index.fs.openAsBlob')
assert.equal(typeof index.fs.openSync, 'function', 'index.fs.openSync')
assert.equal(typeof index.fs.opendir, 'function', 'index.fs.opendir')
assert.equal(typeof index.fs.opendirSync, 'function', 'index.fs.opendirSync')
assert.equal(typeof index.fs.outputFile, 'function', 'index.fs.outputFile')
assert.equal(typeof index.fs.outputFileSync, 'function', 'index.fs.outputFileSync')
assert.equal(typeof index.fs.outputJSON, 'function', 'index.fs.outputJSON')
assert.equal(typeof index.fs.outputJSONSync, 'function', 'index.fs.outputJSONSync')
assert.equal(typeof index.fs.outputJson, 'function', 'index.fs.outputJson')
assert.equal(typeof index.fs.outputJsonSync, 'function', 'index.fs.outputJsonSync')
assert.equal(typeof index.fs.pathExists, 'function', 'index.fs.pathExists')
assert.equal(typeof index.fs.pathExistsSync, 'function', 'index.fs.pathExistsSync')
assert.equal(typeof index.fs.promises, 'object', 'index.fs.promises')
assert.equal(typeof index.fs.read, 'function', 'index.fs.read')
assert.equal(typeof index.fs.readFile, 'function', 'index.fs.readFile')
assert.equal(typeof index.fs.readFileSync, 'function', 'index.fs.readFileSync')
assert.equal(typeof index.fs.readJSON, 'function', 'index.fs.readJSON')
assert.equal(typeof index.fs.readJSONSync, 'function', 'index.fs.readJSONSync')
assert.equal(typeof index.fs.readJson, 'function', 'index.fs.readJson')
assert.equal(typeof index.fs.readJsonSync, 'function', 'index.fs.readJsonSync')
assert.equal(typeof index.fs.readSync, 'function', 'index.fs.readSync')
assert.equal(typeof index.fs.readdir, 'function', 'index.fs.readdir')
assert.equal(typeof index.fs.readdirSync, 'function', 'index.fs.readdirSync')
assert.equal(typeof index.fs.readlink, 'function', 'index.fs.readlink')
assert.equal(typeof index.fs.readlinkSync, 'function', 'index.fs.readlinkSync')
assert.equal(typeof index.fs.readv, 'function', 'index.fs.readv')
assert.equal(typeof index.fs.readvSync, 'function', 'index.fs.readvSync')
assert.equal(typeof index.fs.realpath, 'function', 'index.fs.realpath')
assert.equal(typeof index.fs.realpathSync, 'function', 'index.fs.realpathSync')
assert.equal(typeof index.fs.remove, 'function', 'index.fs.remove')
assert.equal(typeof index.fs.removeSync, 'function', 'index.fs.removeSync')
assert.equal(typeof index.fs.rename, 'function', 'index.fs.rename')
assert.equal(typeof index.fs.renameSync, 'function', 'index.fs.renameSync')
assert.equal(typeof index.fs.rm, 'function', 'index.fs.rm')
assert.equal(typeof index.fs.rmSync, 'function', 'index.fs.rmSync')
assert.equal(typeof index.fs.rmdir, 'function', 'index.fs.rmdir')
assert.equal(typeof index.fs.rmdirSync, 'function', 'index.fs.rmdirSync')
assert.equal(typeof index.fs.stat, 'function', 'index.fs.stat')
assert.equal(typeof index.fs.statSync, 'function', 'index.fs.statSync')
assert.equal(typeof index.fs.statfs, 'function', 'index.fs.statfs')
assert.equal(typeof index.fs.statfsSync, 'function', 'index.fs.statfsSync')
assert.equal(typeof index.fs.symlink, 'function', 'index.fs.symlink')
assert.equal(typeof index.fs.symlinkSync, 'function', 'index.fs.symlinkSync')
assert.equal(typeof index.fs.truncate, 'function', 'index.fs.truncate')
assert.equal(typeof index.fs.truncateSync, 'function', 'index.fs.truncateSync')
assert.equal(typeof index.fs.unlink, 'function', 'index.fs.unlink')
assert.equal(typeof index.fs.unlinkSync, 'function', 'index.fs.unlinkSync')
assert.equal(typeof index.fs.unwatchFile, 'function', 'index.fs.unwatchFile')
assert.equal(typeof index.fs.utimes, 'function', 'index.fs.utimes')
assert.equal(typeof index.fs.utimesSync, 'function', 'index.fs.utimesSync')
assert.equal(typeof index.fs.watch, 'function', 'index.fs.watch')
assert.equal(typeof index.fs.watchFile, 'function', 'index.fs.watchFile')
assert.equal(typeof index.fs.write, 'function', 'index.fs.write')
assert.equal(typeof index.fs.writeFile, 'function', 'index.fs.writeFile')
assert.equal(typeof index.fs.writeFileSync, 'function', 'index.fs.writeFileSync')
assert.equal(typeof index.fs.writeJSON, 'function', 'index.fs.writeJSON')
assert.equal(typeof index.fs.writeJSONSync, 'function', 'index.fs.writeJSONSync')
assert.equal(typeof index.fs.writeJson, 'function', 'index.fs.writeJson')
assert.equal(typeof index.fs.writeJsonSync, 'function', 'index.fs.writeJsonSync')
assert.equal(typeof index.fs.writeSync, 'function', 'index.fs.writeSync')
assert.equal(typeof index.fs.writev, 'function', 'index.fs.writev')
assert.equal(typeof index.fs.writevSync, 'function', 'index.fs.writevSync')
assert.equal(typeof index.glob, 'function', 'index.glob')
assert.equal(typeof index.glob.convertPathToPattern, 'function', 'index.glob.convertPathToPattern')
assert.equal(typeof index.glob.generateGlobTasks, 'function', 'index.glob.generateGlobTasks')
assert.equal(typeof index.glob.generateGlobTasksSync, 'function', 'index.glob.generateGlobTasksSync')
assert.equal(typeof index.glob.globby, 'function', 'index.glob.globby')
assert.equal(typeof index.glob.globbyStream, 'function', 'index.glob.globbyStream')
assert.equal(typeof index.glob.globbySync, 'function', 'index.glob.globbySync')
assert.equal(typeof index.glob.isDynamicPattern, 'function', 'index.glob.isDynamicPattern')
assert.equal(typeof index.glob.isGitIgnored, 'function', 'index.glob.isGitIgnored')
assert.equal(typeof index.glob.isGitIgnoredSync, 'function', 'index.glob.isGitIgnoredSync')
assert.equal(typeof index.glob.sync, 'function', 'index.glob.sync')
assert.equal(typeof index.globby, 'function', 'index.globby')
assert.equal(typeof index.globby.convertPathToPattern, 'function', 'index.globby.convertPathToPattern')
assert.equal(typeof index.globby.generateGlobTasks, 'function', 'index.globby.generateGlobTasks')
assert.equal(typeof index.globby.generateGlobTasksSync, 'function', 'index.globby.generateGlobTasksSync')
assert.equal(typeof index.globby.globby, 'function', 'index.globby.globby')
assert.equal(typeof index.globby.globbyStream, 'function', 'index.globby.globbyStream')
assert.equal(typeof index.globby.globbySync, 'function', 'index.globby.globbySync')
assert.equal(typeof index.globby.isDynamicPattern, 'function', 'index.globby.isDynamicPattern')
assert.equal(typeof index.globby.isGitIgnored, 'function', 'index.globby.isGitIgnored')
assert.equal(typeof index.globby.isGitIgnoredSync, 'function', 'index.globby.isGitIgnoredSync')
assert.equal(typeof index.globby.sync, 'function', 'index.globby.sync')
assert.equal(typeof index.kill, 'function', 'index.kill')
assert.equal(typeof index.log, 'function', 'index.log')
assert.equal(typeof index.minimist, 'function', 'index.minimist')
assert.equal(typeof index.nothrow, 'function', 'index.nothrow')
assert.equal(typeof index.os, 'object', 'index.os')
assert.equal(typeof index.os.EOL, 'string', 'index.os.EOL')
assert.equal(typeof index.os.arch, 'function', 'index.os.arch')
assert.equal(typeof index.os.availableParallelism, 'function', 'index.os.availableParallelism')
assert.equal(typeof index.os.constants, 'object', 'index.os.constants')
assert.equal(typeof index.os.cpus, 'function', 'index.os.cpus')
assert.equal(typeof index.os.default, 'object', 'index.os.default')
assert.equal(typeof index.os.devNull, 'string', 'index.os.devNull')
assert.equal(typeof index.os.endianness, 'function', 'index.os.endianness')
assert.equal(typeof index.os.freemem, 'function', 'index.os.freemem')
assert.equal(typeof index.os.getPriority, 'function', 'index.os.getPriority')
assert.equal(typeof index.os.homedir, 'function', 'index.os.homedir')
assert.equal(typeof index.os.hostname, 'function', 'index.os.hostname')
assert.equal(typeof index.os.loadavg, 'function', 'index.os.loadavg')
assert.equal(typeof index.os.machine, 'function', 'index.os.machine')
assert.equal(typeof index.os.networkInterfaces, 'function', 'index.os.networkInterfaces')
assert.equal(typeof index.os.platform, 'function', 'index.os.platform')
assert.equal(typeof index.os.release, 'function', 'index.os.release')
assert.equal(typeof index.os.setPriority, 'function', 'index.os.setPriority')
assert.equal(typeof index.os.tmpdir, 'function', 'index.os.tmpdir')
assert.equal(typeof index.os.totalmem, 'function', 'index.os.totalmem')
assert.equal(typeof index.os.type, 'function', 'index.os.type')
assert.equal(typeof index.os.uptime, 'function', 'index.os.uptime')
assert.equal(typeof index.os.userInfo, 'function', 'index.os.userInfo')
assert.equal(typeof index.os.version, 'function', 'index.os.version')
assert.equal(typeof index.parseArgv, 'function', 'index.parseArgv')
assert.equal(typeof index.path, 'object', 'index.path')
assert.equal(typeof index.path._makeLong, 'function', 'index.path._makeLong')
assert.equal(typeof index.path.basename, 'function', 'index.path.basename')
assert.equal(typeof index.path.delimiter, 'string', 'index.path.delimiter')
assert.equal(typeof index.path.dirname, 'function', 'index.path.dirname')
assert.equal(typeof index.path.extname, 'function', 'index.path.extname')
assert.equal(typeof index.path.format, 'function', 'index.path.format')
assert.equal(typeof index.path.isAbsolute, 'function', 'index.path.isAbsolute')
assert.equal(typeof index.path.join, 'function', 'index.path.join')
assert.equal(typeof index.path.matchesGlob, 'function', 'index.path.matchesGlob')
assert.equal(typeof index.path.normalize, 'function', 'index.path.normalize')
assert.equal(typeof index.path.parse, 'function', 'index.path.parse')
assert.equal(typeof index.path.posix, 'object', 'index.path.posix')
assert.equal(typeof index.path.relative, 'function', 'index.path.relative')
assert.equal(typeof index.path.resolve, 'function', 'index.path.resolve')
assert.equal(typeof index.path.sep, 'string', 'index.path.sep')
assert.equal(typeof index.path.toNamespacedPath, 'function', 'index.path.toNamespacedPath')
assert.equal(typeof index.path.win32, 'object', 'index.path.win32')
assert.equal(typeof index.ps, 'object', 'index.ps')
assert.equal(typeof index.ps.kill, 'function', 'index.ps.kill')
assert.equal(typeof index.ps.lookup, 'function', 'index.ps.lookup')
assert.equal(typeof index.ps.lookupSync, 'function', 'index.ps.lookupSync')
assert.equal(typeof index.ps.tree, 'function', 'index.ps.tree')
assert.equal(typeof index.ps.treeSync, 'function', 'index.ps.treeSync')
assert.equal(typeof index.question, 'function', 'index.question')
assert.equal(typeof index.quiet, 'function', 'index.quiet')
assert.equal(typeof index.quote, 'function', 'index.quote')
assert.equal(typeof index.quotePowerShell, 'function', 'index.quotePowerShell')
assert.equal(typeof index.resolveDefaults, 'function', 'index.resolveDefaults')
assert.equal(typeof index.retry, 'function', 'index.retry')
assert.equal(typeof index.sleep, 'function', 'index.sleep')
assert.equal(typeof index.spinner, 'function', 'index.spinner')
assert.equal(typeof index.stdin, 'function', 'index.stdin')
assert.equal(typeof index.syncProcessCwd, 'function', 'index.syncProcessCwd')
assert.equal(typeof index.tempdir, 'function', 'index.tempdir')
assert.equal(typeof index.tempfile, 'function', 'index.tempfile')
assert.equal(typeof index.tmpdir, 'function', 'index.tmpdir')
assert.equal(typeof index.tmpfile, 'function', 'index.tmpfile')
assert.equal(typeof index.updateArgv, 'function', 'index.updateArgv')
assert.equal(typeof index.useBash, 'function', 'index.useBash')
assert.equal(typeof index.usePowerShell, 'function', 'index.usePowerShell')
assert.equal(typeof index.usePwsh, 'function', 'index.usePwsh')
assert.equal(typeof index.version, 'string', 'index.version')
assert.equal(typeof index.versions, 'object', 'index.versions')
assert.equal(typeof index.versions.chalk, 'string', 'index.versions.chalk')
assert.equal(typeof index.versions.depseek, 'string', 'index.versions.depseek')
assert.equal(typeof index.versions.dotenv, 'string', 'index.versions.dotenv')
assert.equal(typeof index.versions.fetch, 'string', 'index.versions.fetch')
assert.equal(typeof index.versions.fs, 'string', 'index.versions.fs')
assert.equal(typeof index.versions.glob, 'string', 'index.versions.glob')
assert.equal(typeof index.versions.minimist, 'string', 'index.versions.minimist')
assert.equal(typeof index.versions.ps, 'string', 'index.versions.ps')
assert.equal(typeof index.versions.which, 'string', 'index.versions.which')
assert.equal(typeof index.versions.yaml, 'string', 'index.versions.yaml')
assert.equal(typeof index.versions.zx, 'string', 'index.versions.zx')
assert.equal(typeof index.which, 'function', 'index.which')
assert.equal(typeof index.which.sync, 'function', 'index.which.sync')
assert.equal(typeof index.within, 'function', 'index.within')
})
})