Home Reference Source Test Repository

Variable

Static Public Summary
public

Config from .nvmrc.test.json file

public

handler: *

Static Public

public config: Object source

import config from 'nvm-test/src/api/config.js'

Config from .nvmrc.test.json file

Properties:

NameTypeAttributeDescription
install command
  • optional
  • default:

The install command.
nvm which $version &> /dev/null || nvm install $version

test command
  • optional
  • default:

The test command.
npm test

dryRun boolean
  • optional
  • default: false

Whether or not to dry run the test. Echoes the test command if true.

plugins string[]
  • optional
  • default: []

External plugins

Example:

{
  "test": "echo 'nvm-test version $version'; npm run lint && npm run test",
  "plugins": ["travis"]
}

public handler: * source

import {handler} from 'nvm-test/src/command.js'