Jasmine-node is a command-line utility designed for running Jasmine BDD specifications (specifically version 1.3.1, a forked version from the Karma project) within a Node.js environment without requiring a browser DOM. It provides a simple CLI for executing tests written in JavaScript or CoffeeScript, offering features like automatic test execution on file changes (`--autotest`), colorized output, and optional Growl notifications. The project is explicitly in maintenance mode, and its authors recommend using the official `jasmine` or `jasmine-npm` packages for any new development due to `jasmine-node`'s reliance on an older Jasmine version and limited future development. It supports Node.js versions 10 and 12, with older Node.js versions being deprecated.
npm install jasmine-nodeVerified import paths — ran on the pinned version, not inferred.
Demonstrates the global installation of `jasmine-node`, the creation of a standard Jasmine spec file (including sync, async, and `ddescribe` examples), and how to execute these tests using the `jasmine-node` command-line interface.
Migrate your existing tests to use the official `jasmine` package or a modern alternative like `Jest`. Be aware of API changes between Jasmine 1.x and 2.x, particularly around asynchronous testing (e.g., `done()` callbacks instead of `runs`/`waitsFor`).
Upgrade your Node.js runtime environment to version 10 or 12 to ensure compatibility and receive any potential bug fixes. For environments requiring newer Node.js versions, consider migrating to a more actively maintained testing framework.
Stick to the main `jasmine-node` branch for Jasmine 1.3.1 compatibility, or migrate entirely to the `jasmine` / `jasmine-npm` packages for proper Jasmine 2.x and later support.
Rename your test files to follow the convention (e.g., `myFeatureSpec.js` instead of `myFeature.js`). Alternatively, you can use the `--matchall` flag when running `jasmine-node` to relax this filename requirement, though adhering to the convention is generally best practice.
Always run your tests using the `jasmine-node` CLI command, specifying the directory where your specs are located (e.g., `jasmine-node spec/`).
Verify that your spec files are correctly placed in the directory you're passing to `jasmine-node` (e.g., `spec/`) and that their names conform to the `*spec.js` pattern. If you've used non-standard naming, try running with the `--matchall` flag.
No dependency data recorded yet.