Home Reference Source Test Repository

References

Class Summary

Static Public Class Summary
public

Hooks

Function Summary

Static Protected Function Summary
protected

Wether or not nvm exists.

protected

Makes a function hookable

protected

nvm(command: command): Promise

Process a nvm shell command as a Promise.

protected

nvmInstall(version: version, config: Object, hooks: Object): Promise

Install a Node version with nvm if needed

protected

nvmTest(version: version, config: Object, hooks: Object): Promise

Test using a Node version with nvm

protected

nvmTestVersion(version: version, config: Object, hooks: Object): Promise

Run test using a Node version via nvm

protected

nvmTestVersions(versions: version[], config: Object, hooks: Object): number

Run test using a list of Node versions with nvm.

protected

shell(command: command): ChildProcess | EventEmitter

Spawn a shell command with nvm shell.

Variable Summary

Static Public Variable Summary
public

Config from .nvmrc.test.json file

public

handler: *

Typedef Summary

Static Public Typedef Summary
public

Hook

public

Hookable: function(...args: arguments, hooks: Hooks): Promise

Hookable function, accepts a Hooks as last arguments

public

A command refers to a shell command.

public

A version refers to any version-like string nvm understands.