nva-test is a frontend unit and end-to-end test toolkit, serving as an integral part of the broader `nva` ecosystem. It is built upon established testing frameworks like Karma and Mocha, providing a command-line interface (CLI) for executing tests across various browser environments, including JSDOM, Chrome, and Internet Explorer. The package is currently in its `1.0.x` stable series, with `v1.0.59` being a recent iteration, indicating ongoing development and maintenance. Its primary mode of operation involves CLI commands, where testing configurations can be supplied via files or command-line options. A key differentiator is its seamless integration within `nva` projects, offering a cohesive testing workflow for applications developed using the `nva` framework. Users should anticipate a release cadence consistent with minor updates and bug fixes within the 1.x line.
npm install nva-testVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation, configuration for code coverage with Babel, and basic command-line usage to run tests.
Consult the `nva` project's official documentation or changelog for `nva-test` to identify specific breaking changes and necessary code or configuration updates when migrating from `0.x` to `1.x` versions.
Install `babel-plugin-istanbul` (`npm install babel-plugin-istanbul --save-dev`) and add it to your Babel configuration's `env.test.plugins` array.
Ensure `nva-test` is installed: `npm install nva-test --save-dev`. If installed locally, run it via `npm test` (if configured in `package.json`) or `npx nva-test`. If installed globally (`npm install -g nva-test`), ensure your global `npm bin` directory is in your system's PATH.
Install the missing plugin as a development dependency: `npm install babel-plugin-istanbul --save-dev`. Verify it's correctly listed in your `package.json` and that your Babel configuration is pointing to the correct plugin name.