Options
All
  • Public
  • Public/Protected
  • All
Menu

Package acceptance-tests

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

Assertions

Assertions: object

Type declaration

  • Optional fail?: Array<[]>
  • Optional pass?: Array<[]>

ExecResult

ExecResult: object | ExecException & object

Manifest

Manifest: object

Type declaration

  • Optional exports?: string | object
  • Optional main?: undefined | string
  • name: string

PackageEntry

PackageEntry: Map<string, object>

PackageRegistry

PackageRegistry: Map<string, PackageEntry>

PackageRunDriver

PackageRunDriver: function

Type declaration

Request

Request: object | object | object | object | object | object

Run

Run: function

Type declaration

    • (...args: Array<string> | []): Promise<ExecResult>
    • Parameters

      • Rest ...args: Array<string> | []

      Returns Promise<ExecResult>

RunFunction

RunFunction: function

Type declaration

    • (__namedParameters: object): Promise<void>
    • Parameters

      • __namedParameters: object
        • path: string & object
        • run: function
            • (...args: Array<string> | []): Promise<ExecResult>
            • Parameters

              • Rest ...args: Array<string> | []

              Returns Promise<ExecResult>

        • source: function
            • (script: string, callDefinition?: Record<string, any>): Promise<Record<string, any>>
            • Parameters

              • script: string
              • Optional callDefinition: Record<string, any>

              Returns Promise<Record<string, any>>

      Returns Promise<void>

Source

Source: function

Type declaration

    • (script: string, callDefinition?: Record<string, any>): Promise<Record<string, any>>
    • Parameters

      • script: string
      • Optional callDefinition: Record<string, any>

      Returns Promise<Record<string, any>>

Variables

Const FAKE_FIRST_SCOPE

FAKE_FIRST_SCOPE: "first" = `first`

Const FAKE_HOME

FAKE_HOME: "HOME" = `HOME`

Const FAKE_LOCAL_APP_DATA

FAKE_LOCAL_APP_DATA: "LOCAL_APP_DATA" = `LOCAL_APP_DATA`

Const FAKE_PUBLISH_REGISTRY_URL

FAKE_PUBLISH_REGISTRY_URL: "https://npm.pkg.github.com" = `https://npm.pkg.github.com`

Const FAKE_REGISTRY_URL

FAKE_REGISTRY_URL: "http://yarn.test.registry" = `http://yarn.test.registry`

Const FAKE_REGISTRY_URL

FAKE_REGISTRY_URL: "http://yarn.test.registry" = `http://yarn.test.registry`

Const FAKE_REGISTRY_URL

FAKE_REGISTRY_URL: "http://yarn.test.registry" = `http://yarn.test.registry`

Const FAKE_SECOND_SCOPE

FAKE_SECOND_SCOPE: "second" = `second`

Const FAKE_THIRD_REGISTRY_URL

FAKE_THIRD_REGISTRY_URL: "https://third.yarn.test.registry" = `https://third.yarn.test.registry`

Const FAKE_THIRD_SCOPE

FAKE_THIRD_SCOPE: "third" = `third`

Const FAKE_WORKSPACE_ROOT

FAKE_WORKSPACE_ROOT: "WORKSPACE_ROOT" = `WORKSPACE_ROOT`

Const FILTER

FILTER: RegExp = new RegExp([`initScope`,`lastUpdateCheck`,`defaultLanguageName`,].join(`|`))

Filename

Filename: object

Type declaration

  • home: string & object
  • lockfile: string & object
  • manifest: string & object
  • nodeModules: string & object
  • pnpCjs: string & object
  • pnpData: string & object
  • pnpEsmLoader: string & object
  • pnpJs: string & object
    deprecated
  • rc: string & object
  • virtual: string & object

Filename

Filename: object

Type declaration

  • home: string & object
  • lockfile: string & object
  • manifest: string & object
  • nodeModules: string & object
  • pnpCjs: string & object
  • pnpData: string & object
  • pnpEsmLoader: string & object
  • pnpJs: string & object
    deprecated
  • rc: string & object
  • virtual: string & object

FsLinkType

FsLinkType: any

FsLinkType

FsLinkType: any

Const INVALID_AUTH_IDENT

INVALID_AUTH_IDENT: "dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==" = `dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==`

Const INVALID_AUTH_IDENT

INVALID_AUTH_IDENT: "dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==" = `dXNlcm5hbWU6bm90IHRoZSByaWdodCBwYXNzd29yZA==`

Const INVALID_AUTH_TOKEN

INVALID_AUTH_TOKEN: "a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57" = `a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57`

Const INVALID_AUTH_TOKEN

INVALID_AUTH_TOKEN: "a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57" = `a24cb960-e6a5-45fc-b9ab-0f9fe0aaae57`

Const IS_WIN32

IS_WIN32: boolean = process.platform === `win32`

Const LOCKFILE_1_0_0

LOCKFILE_1_0_0: "# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "1.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-1.0.0.tgz#8d556c1e3e6c953ea16689c506073d5fa26b957f"integrity sha1-jVVsHj5slT6hZonFBgc9X6JrlX8=" = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "1.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-1.0.0.tgz#8d556c1e3e6c953ea16689c506073d5fa26b957f"integrity sha1-jVVsHj5slT6hZonFBgc9X6JrlX8=`

Const LOCKFILE_2_0_0

LOCKFILE_2_0_0: "# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "2.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-2.0.0.tgz#f3b8f24d76b21b04748e6888672752b872236fa7"integrity sha1-87jyTXayGwR0jmiIZydSuHIjb6c=" = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "2.0.0"resolved "http://localhost:64572/no-deps/-/no-deps-2.0.0.tgz#f3b8f24d76b21b04748e6888672752b872236fa7"integrity sha1-87jyTXayGwR0jmiIZydSuHIjb6c=`

Const NO_DEPS_PATCH

NO_DEPS_PATCH: "diff --git a/index.js b/index.jsindex bb9c6f687..5b141d3df 100644--- a/index.js+++ b/index.js@@ -1,5 +1,7 @@module.exports = require(`./package.json`);+module.exports.hello = `world`;+for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {for (const dep of Object.keys(module.exports[key] || {})) {module.exports[key][dep] = require(dep);" = `diff --git a/index.js b/index.jsindex bb9c6f687..5b141d3df 100644--- a/index.js+++ b/index.js@@ -1,5 +1,7 @@module.exports = require(\`./package.json\`);+module.exports.hello = \`world\`;+for (const key of [\`dependencies\`, \`devDependencies\`, \`peerDependencies\`]) {for (const dep of Object.keys(module.exports[key] || {})) {module.exports[key][dep] = require(dep);`

Const PATCH_NAME

PATCH_NAME: string & object = `my-patch.patch` as Filename

Const RC_FILENAME

RC_FILENAME: ".spec-yarnrc" = `.spec-yarnrc`

RequestType

RequestType: RequestType

Const SPEC_RC_FILENAME

SPEC_RC_FILENAME: string & object = `.spec-yarnrc` as Filename

Const SPEC_RC_FILENAME

SPEC_RC_FILENAME: string & object = `.spec-yarnrc` as Filename

Const SUBFOLDER

SUBFOLDER: "subfolder" = `subfolder`

Const TEST_TIMEOUT

TEST_TIMEOUT: 150000 | 50000 = os.endianness() === `BE`? 150000: 50000

Const configs

configs: object[] = [{nodeLinker: `pnp`,}, {nodeLinker: `pnpm`,}, {nodeLinker: `node-modules`,}]

Const configs

configs: object[] = [{nodeLinker: `pnp`,}, {nodeLinker: `pnpm`,}, {nodeLinker: `node-modules`,}]

Const constraintsFile

constraintsFile: "custom_predicate(DependencyType):-dependency_type(DependencyType),DependencyType \= dependencies." = `custom_predicate(DependencyType):-dependency_type(DependencyType),DependencyType \\= dependencies.`

Const cp

cp: "child_process" = require(`child_process`)

Const deepResolve

deepResolve: any = require(`super-resolve`)

Const deepResolve

deepResolve: any = require(`super-resolve`)

determineLinkType

determineLinkType: any

determineLinkType

determineLinkType: any

environments

environments: object

Type declaration

environments

environments: object

Type declaration

environments

environments: object

Type declaration

exec

exec: object

Type declaration

  • execFile: any

exec

exec: object

Type declaration

exec

exec: object

Type declaration

exec

exec: object

Type declaration

exec

exec: object

Type declaration

exec

exec: object

Type declaration

execFile

execFile: execFile

execFile

execFile: any

execFile

execFile: execFile

execFile

execFile: execFile

execFile

execFile: execFile

execFile

execFile: execFile

execFile

execFile: execFile

Const execPromise

execPromise: __promisify__ = promisify(exec)

execUtils

execUtils: "/builds/BootPM/www.yarnpkg.cn/packages/yarnpkg-core/sources/execUtils"

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

  • FsLinkType: any
  • determineLinkType: any
  • writeFile: any
  • writeJson: any

fs

fs: object

Type declaration

fs

fs: object

Type declaration

  • writeFile: any
  • writeJson: any

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

  • FsLinkType: any
  • determineLinkType: any

fs

fs: object

Type declaration

fs

fs: object

Type declaration

fs

fs: object

Type declaration

generatePkgDriver

generatePkgDriver: generatePkgDriver

getHttpsCertificates

getHttpsCertificates: getHttpsCertificates

getPackageArchivePath

getPackageArchivePath: getPackageArchivePath

getPackageArchivePath

getPackageArchivePath: getPackageArchivePath

getPackageArchivePath

getPackageArchivePath: any

getPackageDirectoryPath

getPackageDirectoryPath: getPackageDirectoryPath

getPackageDirectoryPath

getPackageDirectoryPath: getPackageDirectoryPath

getPackageDirectoryPath

getPackageDirectoryPath: any

getPackageDirectoryPath

getPackageDirectoryPath: getPackageDirectoryPath

getPackageDirectoryPath

getPackageDirectoryPath: getPackageDirectoryPath

getPackageDirectoryPath

getPackageDirectoryPath: any

getPackageDirectoryPath

getPackageDirectoryPath: getPackageDirectoryPath

getPackageHttpArchivePath

getPackageHttpArchivePath: getPackageHttpArchivePath

getPackageRegistry

getPackageRegistry: getPackageRegistry

Const globalName

globalName: string = makeTemporaryEnv.getPackageManagerName()

Let httpsCertificates

httpsCertificates: object

Type declaration

  • ca: CertificateCreationResult
  • server: CertificateCreationResult

isAbsolute

isAbsolute: isAbsolute

Const lockfile100

lockfile100: string = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "1.0.0"resolved "https://registry.yarnpkg.com/no-deps/-/no-deps-1.0.0.tgz#39453512f8241e2d20307975e8d9eb6314f7bf61"integrity sha1-OUU1EvgkHi0gMHl16NnrYxT3v2E=`.replace(/^\n+/g, ``)

Const lockfile200

lockfile200: string = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.# yarn lockfile v1no-deps@*:version "2.0.0"resolved "https://registry.yarnpkg.com/no-deps/-/no-deps-2.0.0.tgz#39453512f8241e2d20307975e8d9eb6314f7bf62"integrity sha1-OUU1EvgkHi0gMHl16NnrYxT3v2E=`.replace(/^\n+/g, ``)

makeFakeBinary

makeFakeBinary: makeFakeBinary

misc

misc: object

Type declaration

misc

misc: object

Type declaration

misc

misc: object

Type declaration

Const mte

mte: PackageDriver = generatePkgDriver({getName() {return `yarn`;},async runDriver(path,[command, ...args],{cwd, projectFolder, registryUrl, env, ...config},) {const rcEnv: Record<string, any> = {};for (const [key, value] of Object.entries(config))rcEnv[`YARN_${key.replace(/([A-Z])/g, `_$1`).toUpperCase()}`] = Array.isArray(value) ? value.join(`;`) : value;const nativePath = npath.fromPortablePath(path);const nativeHomePath = npath.dirname(nativePath);const cwdArgs = typeof projectFolder !== `undefined`? [projectFolder]: [];const yarnBinary = require.resolve(`${__dirname}/../../../../yarnpkg-cli/bundles/yarn.js`);const res = await execFile(process.execPath, [yarnBinary, ...cwdArgs, command, ...args], {cwd: cwd || path,env: {[`HOME`]: nativeHomePath,[`USERPROFILE`]: nativeHomePath,[`PATH`]: `${nativePath}/bin${delimiter}${process.env.PATH}`,[`YARN_IS_TEST_ENV`]: `true`,[`YARN_GLOBAL_FOLDER`]: `${nativePath}/.yarn/global`,[`YARN_NPM_REGISTRY_SERVER`]: registryUrl,[`YARN_UNSAFE_HTTP_WHITELIST`]: new URL(registryUrl).hostname,// Otherwise we'd send telemetry event when running tests[`YARN_ENABLE_TELEMETRY`]: `0`,// Otherwise snapshots relying on this would break each time it's bumped[`YARN_CACHE_KEY_OVERRIDE`]: `0`,// Otherwise the output isn't stable between runs[`YARN_ENABLE_TIMERS`]: `false`,[`YARN_ENABLE_PROGRESS_BARS`]: `false`,[`FORCE_COLOR`]: `0`,// Otherwise the output wouldn't be the same on CI vs non-CI[`YARN_ENABLE_INLINE_BUILDS`]: `false`,[`YARN_PREFER_AGGREGATE_CACHE_INFO`]: `false`,// Otherwise we would more often test the fallback rather than the real logic[`YARN_PNP_FALLBACK_MODE`]: `none`,// Otherwise tests fail on systems where this is globally set to true[`YARN_ENABLE_GLOBAL_CACHE`]: `false`,// Older versions of Windows need this set to not have node throw an error[`NODE_SKIP_PLATFORM_CHECK`]: `1`,...rcEnv,...env,},});if (process.env.JEST_LOG_SPAWNS) {console.log(`===== stdout:`);console.log(res.stdout);console.log(`===== stderr:`);console.log(res.stderr);}return res;},})

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

npath

npath: PathUtils<string & object> & ConvertUtils

Let packageRegistryPromise

packageRegistryPromise: Promise<PackageRegistry> | null = null

parseJsonStream

parseJsonStream: parseJsonStream

parseJsonStream

parseJsonStream: parseJsonStream

parseJsonStream

parseJsonStream: parseJsonStream

parseSyml

parseSyml: any

parseSyml

parseSyml: parseSyml

Const pipelinePromise

pipelinePromise: __promisify__ = promisify(stream.pipeline)

Const pipelinePromise

pipelinePromise: __promisify__ = promisify(stream.pipeline)

ppath

ppath: PathUtils<string & object> & PortablePathGenerics

ppath

ppath: PathUtils<string & object> & PortablePathGenerics

readManifest

readManifest: readManifest

readManifest

readManifest: readManifest

readManifest

readManifest: readManifest

Let recording

recording: Array<Request> | null = null

resolve

resolve: resolve

satisfies

satisfies: any

satisfies

satisfies: any

Const semver

semver: any = require(`semver`)

semverUtils

semverUtils: "/builds/BootPM/www.yarnpkg.cn/packages/yarnpkg-core/sources/semverUtils"

setPackageWhitelist

setPackageWhitelist: any

setPackageWhitelist

setPackageWhitelist: setPackageWhitelist

setPackageWhitelist

setPackageWhitelist: setPackageWhitelist

startPackageServer

startPackageServer: startPackageServer

startPackageServer

startPackageServer: startPackageServer

startPackageServer

startPackageServer: startPackageServer

startPackageServer

startPackageServer: startPackageServer

startPackageServer

startPackageServer: startPackageServer

startPackageServer

startPackageServer: any

startPackageServer

startPackageServer: startPackageServer

startPackageServer

startPackageServer: startPackageServer

startRegistryRecording

startRegistryRecording: startRegistryRecording

Const staticServer

staticServer: Handler = serveStatic(npath.fromPortablePath(require(`pkg-tests-fixtures`)))

testIf

testIf: any

testIf

testIf: testIf

testIf

testIf: testIf

testIf

testIf: any

tests

tests: object

Type declaration

tests

tests: object

Type declaration

tests

tests: object

Type declaration

tests

tests: object

Type declaration

tests

tests: object

Type declaration

  • setPackageWhitelist: any

tests

tests: object

Type declaration

  • testIf: any

tests

tests: object

Type declaration

tests

tests: object

Type declaration

tests

tests: object

Type declaration

  • getPackageDirectoryPath: any

tests

tests: object

Type declaration

tests

tests: object

Type declaration

  • validLogins: any

tests

tests: object

Type declaration

  • startPackageServer: any
  • validLogins: any

tests

tests: object

Type declaration

Const tests

tests: Array<[]> = [[`no-deps@npm:^1.0.0`, `no-deps@npm:2.0.0`, false],[`no-deps@npm:^1.0.0`, `no-deps@npm:1.0.0`, true],[`no-deps@npm:^1.0.0`, `no-deps-bins@npm:1.0.0`, false],[`no-deps@npm:no-deps-bins@^1.0.0`, `no-deps-bins@npm:1.0.0`, true],[`util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, `util-deprecate@https://github.com/yarnpkg/util-deprecate.git`, false],[`util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, `util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=475fb6857cd23fafff20c1be846c1350abf8e6d4`, false],[`util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, `util-deprecate@https://github.com/yarnpkg/util-deprecate.git#commit=4bcc600d20e3a53ea27fa52c4d1fc49cc2d0eabb`, true],]

tests

tests: object

Type declaration

  • testIf: any

tests

tests: object

Type declaration

tests

tests: object

Type declaration

  • getPackageArchivePath: any

tests

tests: object

Type declaration

tests

tests: object

Type declaration

tests

tests: object

Type declaration

  • getPackageDirectoryPath: any

tests

tests: object

Type declaration

unpackToDirectory

unpackToDirectory: unpackToDirectory

Const validLogins

validLogins: object = {fooUser: new Login(`foo-user`),barUser: new Login(`bar-user`),otpUser: new Login(`otp-user`, {otp: true}),otpUserWithNotice: new Login(`otp-user-with-notice`, {otp: true, notice: true}),} as const

Type declaration

validLogins

validLogins: object

Type declaration

validLogins

validLogins: object

Type declaration

validLogins

validLogins: object

Type declaration

validLogins

validLogins: any

validLogins

validLogins: any

validLogins

validLogins: object

Type declaration

Let whitelist

whitelist: Map<any, any> = new Map()

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: any

writeFile

writeFile: writeFile

writeFile

writeFile: any

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeFile

writeFile: writeFile

writeJson

writeJson: writeJson

writeJson

writeJson: any

writeJson

writeJson: writeJson

writeJson

writeJson: any

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

writeJson

writeJson: writeJson

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

xfs

xfs: NodeFS & object

yarn

yarn: "/builds/BootPM/www.yarnpkg.cn/packages/acceptance-tests/pkg-tests-core/sources/utils/yarn"

yarn

yarn: object

Type declaration

Const yarnrcRegexp

yarnrcRegexp: RegExp = /^yarnPath:/

Functions

Const COMMANDS_PLUGIN

  • COMMANDS_PLUGIN(name: string, __namedParameters?: object): string

Const CONFIGURATION_PLUGIN

  • CONFIGURATION_PLUGIN(name: string, __namedParameters?: object): string

check

cleanupFileContent

  • cleanupFileContent(fileContent: string): string

cleanupJsonOutput

  • cleanupJsonOutput(output: any, path: any, homePath: any): any

cleanupPlainOutput

  • cleanupPlainOutput(output: any, path: any, homePath: any): any

computeCacheSize

createMockPlugin

  • createMockPlugin(path: string): Promise<string & object>

Const determineLinkType

Const execFile

Const generatePkgDriver

getClientContent

  • getClientContent(mutex: any, name: any): string

Const getHttpsCertificates

  • getHttpsCertificates(): Promise<object>

Const getPackageArchiveHash

  • getPackageArchiveHash(name: string, version: string): Promise<string | Buffer>

Const getPackageArchivePath

  • getPackageArchivePath(name: string, version: string): Promise<PortablePath>

Const getPackageArchiveStream

  • getPackageArchiveStream(name: string, version: string): Promise<Gzip>

Const getPackageDirectoryPath

  • getPackageDirectoryPath(name: string, version: string): Promise<string>

Const getPackageEntry

  • getPackageEntry(name: string): Promise<PackageEntry | undefined>

Const getPackageHttpArchivePath

  • getPackageHttpArchivePath(name: string, version: string): Promise<string>

Const getPackageRegistry

getPluginPath

  • getPluginPath(dir: PortablePath, name: string): string & object

Const getWorkspaces

  • getWorkspaces(run: tests.Run): Promise<string[]>

Const lsStore

Const makeCodeFilter

  • makeCodeFilter(level: string): string

Const makeFakeBinary

  • makeFakeBinary(target: PortablePath, __namedParameters?: object): Promise<void>

Const makePatternFilter

  • makePatternFilter(level: string): string

makeTemporaryExportsEnv

  • makeTemporaryExportsEnv(testPackageName: string, manifest: Omit<Manifest, "name">, files: Array<string>, __namedParameters: object): any

Const makeTextFilter

  • makeTextFilter(level: string): string

makeVersionCheckEnv

  • makeVersionCheckEnv(cb: any): any

makeWorkspacesForeachSinceEnv

  • makeWorkspacesForeachSinceEnv(cb: any): any

makeWorkspacesListSinceEnv

  • makeWorkspacesListSinceEnv(cb: any): any

mockPluginServer

  • mockPluginServer(asyncFn: function): Promise<void>

Const mtme

  • mtme(packageJson: Record<string, any>, workspaces: Record<string, Record<string, any>>, subDefinition: Record<string, any> | RunFunction, fn?: RunFunction | undefined): any

Const noPnpNode

  • noPnpNode(args: any, cwd: any): Promise<any>

Const packToFile

Const packToStream

  • packToStream(source: PortablePath, __namedParameters?: object): Gzip

Const parseJsonStream

  • parseJsonStream(stream: string, key?: undefined | string): any

readConfiguration

  • readConfiguration(dir: PortablePath, __namedParameters?: object): Promise<any>

readManifest

  • readManifest(dir: PortablePath, __namedParameters?: object): Promise<any>
  • Parameters

    • dir: PortablePath
    • Default value __namedParameters: object = {}
      • filename: string & object
      • key: undefined | "name" | "type" | "version" | "dependencies" | "peerDependencies" | "dependenciesMeta" | "peerDependenciesMeta" | "devDependencies" | "os" | "cpu" | "libc" | "indent" | "packageManager" | "private" | "license" | "main" | "module" | "browser" | "languageName" | "bin" | "scripts" | "workspaceDefinitions" | "resolutions" | "files" | "publishConfig" | "installConfig" | "preferUnplugged" | "raw" | "errors" | "loadFromText" | "loadFile" | "load" | "getForScope" | "hasConsumerDependency" | "hasHardDependency" | "hasSoftDependency" | "hasDependency" | "getConditions" | "ensureDependencyMeta" | "ensurePeerDependencyMeta" | "setRawField" | "exportTo"

    Returns Promise<any>

Const readSyml

Const sdks

  • sdks(args: any, cwd: any): Promise<any>

Const setPackageWhitelist

  • setPackageWhitelist(packages: Map<string, Set<string>>, fn: function): Promise<void>

setupProject

  • setupProject(path: any): Promise<void>

setupWorkspaces

setupWorkspaces

  • setupWorkspaces(path: any): Promise<void>

setupWorkspaces

  • setupWorkspaces(path: any): Promise<void>

Const startPackageServer

  • startPackageServer(__namedParameters?: object): Promise<string>

Const startRegistryRecording

  • startRegistryRecording(fn: function): Promise<(object | object | object | object | object | object)[]>

Const testIf

  • testIf(condition: function, name: string, execute?: jest.ProvidesCallback | undefined, timeout?: number | undefined): void

Const unpackToDirectory

writeConfiguration

  • writeConfiguration(dir: PortablePath, value: object, __namedParameters?: object): Promise<void>

Const writeFile

  • writeFile(target: PortablePath, body: string | Buffer): Promise<void>

Const writeJson

  • writeJson(target: PortablePath, object: any): Promise<void>

writeManifest

  • writeManifest(dir: PortablePath, value: object, __namedParameters?: object): Promise<void>

writePackage

  • writePackage(dir: PortablePath, manifest: object): Promise<void>

writeTestPackage

Object literals

Const CLASSIC_SCOPE_SETTINGS

CLASSIC_SCOPE_SETTINGS: object

npmAlwaysAuth

npmAlwaysAuth: string = `true`

Const FAKE_REGISTRY_CREDENTIALS

FAKE_REGISTRY_CREDENTIALS: object

npmAuthIdent

npmAuthIdent: string = `username:password`

npmAuthToken

npmAuthToken: string = `ffffffff-ffff-ffff-ffff-ffffffffffff`

Const TESTED_URLS

TESTED_URLS: object

git+ssh://git@github.com/yarnpkg/util-deprecate.git#v1.0.1

git+ssh://git@github.com/yarnpkg/util-deprecate.git#v1.0.1: object

ci

ci: boolean = false

version

version: string = `1.0.1`

git://github.com/yarnpkg/util-deprecate.git#v1.0.1

git://github.com/yarnpkg/util-deprecate.git#v1.0.1: object

ci

ci: boolean = false

version

version: string = `1.0.1`

https://github.com/yarnpkg/util-deprecate.git#b3562c2798507869edb767da869cd7b85487726d

https://github.com/yarnpkg/util-deprecate.git#b3562c2798507869edb767da869cd7b85487726d: object

version

version: string = `1.0.0`

https://github.com/yarnpkg/util-deprecate.git#master

https://github.com/yarnpkg/util-deprecate.git#master: object

version

version: string = `1.0.2`

https://github.com/yarnpkg/util-deprecate.git#semver:>=1.0.0 <1.0.2

https://github.com/yarnpkg/util-deprecate.git#semver:>=1.0.0 <1.0.2: object

ci

ci: boolean = false

version

version: string = `1.0.1`

https://github.com/yarnpkg/util-deprecate.git#semver:^1.0.0

https://github.com/yarnpkg/util-deprecate.git#semver:^1.0.0: object

ci

ci: boolean = false

version

version: string = `1.0.2`

https://github.com/yarnpkg/util-deprecate.git#v1.0.0

https://github.com/yarnpkg/util-deprecate.git#v1.0.0: object

version

version: string = `1.0.0`

Const constraints

constraints: object

empty constraints

empty constraints: object

js

js: string = ``

prolog

prolog: string = ``

gen_enforced_dependency (ambiguous)

gen_enforced_dependency (ambiguous): object

js

js: string = `exports.constraints = ({Yarn}) => {for (const w of Yarn.workspaces()) w.set(['dependencies', 'no-deps'], '1.0.0');for (const w of Yarn.workspaces()) w.set(['dependencies', 'no-deps'], '2.0.0');};`

prolog

prolog: string = `gen_enforced_dependency(WorkspaceCwd, 'no-deps', '1.0.0', dependencies).gen_enforced_dependency(WorkspaceCwd, 'no-deps', '2.0.0', dependencies).`

gen_enforced_dependency (extraneous)

gen_enforced_dependency (extraneous): object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set(['dependencies', 'no-deps'], undefined); };`

prolog

prolog: string = `gen_enforced_dependency(WorkspaceCwd, 'no-deps', null, _).`

gen_enforced_dependency (extraneous2)

gen_enforced_dependency (extraneous2): object

js

js: string = `exports.constraints = ({Yarn}) => {for (const d of Yarn.dependencies({ident: 'no-deps'})) d.delete();for (const d of Yarn.dependencies({ident: 'no-deps', range: '1.0.0'})) d.update('1.0.0');};`

prolog

prolog: string = `gen_enforced_dependency(WorkspaceCwd, 'no-deps', null, _) :-WorkspaceCwd \\= '.'.gen_enforced_dependency(WorkspaceCwd, 'no-deps', '1.0.0', DependencyType) :-workspace_has_dependency(WorkspaceCwd, 'no-deps', '1.0.0', DependencyType).`

gen_enforced_dependency (incompatible)

gen_enforced_dependency (incompatible): object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set(['dependencies', 'no-deps'], '2.0.0'); };`

prolog

prolog: string = `gen_enforced_dependency(WorkspaceCwd, 'no-deps', '2.0.0', dependencies).`

gen_enforced_dependency (missing)

gen_enforced_dependency (missing): object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set(['peerDependencies', 'one-fixed-dep'], '1.0.0'); };`

prolog

prolog: string = `gen_enforced_dependency(WorkspaceCwd, 'one-fixed-dep', '1.0.0', peerDependencies).`

gen_enforced_field (ambiguous)

gen_enforced_field (ambiguous): object

js

js: string = `exports.constraints = ({Yarn}) => {for (const w of Yarn.workspaces()) w.set(['dependencies', 'a-new-dep'], '1.0.0');for (const w of Yarn.workspaces()) w.set(['dependencies', 'a-new-dep'], '2.0.0');};`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, 'dependencies["a-new-dep"]', '1.0.0').gen_enforced_field(WorkspaceCwd, 'dependencies["a-new-dep"]', '2.0.0').`

gen_enforced_field (extraneous)

gen_enforced_field (extraneous): object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.unset(['dependencies']); };`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, 'dependencies', null).`

gen_enforced_field (incompatible)

gen_enforced_field (incompatible): object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set(['dependencies', 'no-deps'], '2.0.0'); };`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, 'dependencies["no-deps"]', '2.0.0').`

gen_enforced_field (missing)

gen_enforced_field (missing): object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set(['dependencies', 'a-new-deps'], '1.0.0'); };`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, 'dependencies["a-new-dep"]', '1.0.0').`

workspace_field w/ array FieldValue

workspace_field w/ array FieldValue: object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set('_files', w.manifest.files); };`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, '_files', FieldValue) :- workspace_field(WorkspaceCwd, 'files', FieldValue).`

workspace_field w/ object FieldValue

workspace_field w/ object FieldValue: object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set('_repository', w.manifest.repository); };`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, '_repository', FieldValue) :- workspace_field(WorkspaceCwd, 'repository', FieldValue).`

workspace_field w/ string FieldValue

workspace_field w/ string FieldValue: object

js

js: string = `exports.constraints = ({Yarn}) => { for (const w of Yarn.workspaces()) w.set('_name', w.manifest.name); };`

prolog

prolog: string = `gen_enforced_field(WorkspaceCwd, '_name', FieldValue) :- workspace_field(WorkspaceCwd, 'name', FieldValue).`

Const constraints

constraints: object

empty constraints

empty constraints: string = ``

gen_enforced_dependency (extraneous)

gen_enforced_dependency (extraneous): string = `gen_enforced_dependency(WorkspaceCwd, 'no-deps', null, _).`

gen_enforced_dependency (incompatible)

gen_enforced_dependency (incompatible): string = `gen_enforced_dependency(WorkspaceCwd, 'no-deps', '2.0.0', dependencies).`

gen_enforced_dependency (missing)

gen_enforced_dependency (missing): string = `gen_enforced_dependency(WorkspaceCwd, 'one-fixed-dep', '1.0.0', peerDependencies).`

Const environments

environments: object

folder with rcfile

  • folder with rcfile(__namedParameters: object): Promise<void>

folder with rcfile and rc in ancestor parent

  • folder with rcfile and rc in ancestor parent(__namedParameters: object): Promise<void>

folder with rcfile and rc in home folder

  • folder with rcfile and rc in home folder(__namedParameters: object): Promise<void>

folder with rcfile and rc in parent

  • folder with rcfile and rc in parent(__namedParameters: object): Promise<void>

folder with rcfile without trailing newline

  • folder with rcfile without trailing newline(__namedParameters: object): Promise<void>

folder without rcfile in ancestry

  • folder without rcfile in ancestry(): Promise<void>

Const options

options: object

as json

as json: object

cleanupStdout

cleanupStdout: cleanupJsonOutput = cleanupJsonOutput

flags

flags: string[] = [`--json`]

showing explanation

showing explanation: object

cleanupStdout

cleanupStdout: cleanupPlainOutput = cleanupPlainOutput

flags

flags: string[] = [`--verbose`]

showing the source

showing the source: object

cleanupStdout

cleanupStdout: cleanupPlainOutput = cleanupPlainOutput

flags

flags: string[] = [`--why`]

without flags

without flags: object

cleanupStdout

cleanupStdout: cleanupPlainOutput = cleanupPlainOutput

flags

flags: never[] = []

Const packageServerUrls

packageServerUrls: object

http

http: null = null

https

https: null = null

Const queries

queries: object

combined predicates

combined predicates: string = `dependency_type(DependencyType), workspace_has_dependency(_, DependencIdent, DependencyRange, DependencyType).`

custom predicate

custom predicate: string = `custom_predicate(DependencyType).`

filter w/ workspace_field_test/3

filter w/ workspace_field_test/3: string = `workspace(WorkspaceCwd), workspace_field_test(WorkspaceCwd, 'name', '$$ === "workspace-a"').`

filter w/ workspace_field_test/4

filter w/ workspace_field_test/4: string = `workspace(WorkspaceCwd), workspace_field_test(WorkspaceCwd, 'name', '$$ === $0', ['workspace-b']).`

single predicate

single predicate: string = `dependency_type(DependencyType).`

single predicate with ignored variable

single predicate with ignored variable: string = `workspace_ident(_, WorkspaceName).`

workspace_field w/ array FieldValue

workspace_field w/ array FieldValue: string = `workspace_field('.', 'files', FieldValue).`

workspace_field w/ object FieldValue

workspace_field w/ object FieldValue: string = `workspace_field('.', 'repository', FieldValue).`

workspace_field w/ string FieldValue

workspace_field w/ string FieldValue: string = `workspace_field('.', 'name', FieldValue).`

Const scriptNames

scriptNames: object

js

js: string = `yarn.config.js`

prolog

prolog: string = `constraints.pro`

Const unplugged

unplugged: object

unplugged

unplugged: boolean = true

Generated using TypeDoc