{"library":"nva-test","title":"nva-test","description":"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.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install nva-test"],"cli":{"name":"nva-test","version":null}},"imports":["nva-test -w"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install nva-test --save-dev\n\n// Ensure babel-plugin-istanbul is installed for coverage (as a devDependency)\nnpm install babel-plugin-istanbul --save-dev\n\n// Example .babelrc or babel.config.js snippet for coverage\n// This enables the istanbul plugin only in the 'test' environment\n// for code coverage instrumentation.\n// babel.config.js\nmodule.exports = {\n  \"env\": {\n    \"test\": {\n      \"plugins\": [\"istanbul\"]\n    }\n  }\n};\n\n// Run e2e tests using the nva-test CLI\n// The '-w' flag typically indicates 'watch' mode or a default test run.\n// For more complex configurations, a config file can be passed via '-c'.\n// For instance, 'nva-test -c test-config.js' might specify Karma/Mocha options.\n\n// In your package.json scripts:\n// \"scripts\": {\n//   \"test\": \"nva-test -w\",\n//   \"test:coverage\": \"nva-test --coverage\"\n// }\n\n// From the command line:\nnva-test -w","lang":"javascript","description":"Demonstrates installation, configuration for code coverage with Babel, and basic command-line usage to run tests.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}