https://www.npmjs.com/package/jasmine-core said it contains core files only. Why so many projects use core-files only instead of complete files? Such as https://angular.io/docs/ts/latest/guide/webpack.html .
The jasmine module is a command line interface and supporting code for running Jasmine specs under Node. The core of jasmine lives at https://github.com/jasmine/jasmine and is jasmine-core in npm.
A JavaScript Testing Framework Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node. js projects, or anywhere that JavaScript can run.
Do above mentioned or simply go to jasmine. js file and look for function getJasmineRequireObj(). version. This function is returning the version of the jasmine.
Use the terminal below to run each of the following commands: npm install --save-dev jasmine installs the Jasmine npm package.
The reason the jasmine
repo has so many more downloads is because all the language-specific Jasmine modules/packages depend on it. For example, when I added the jasmine gem to my Rails app, it installed both jasmine-gem
and jasmine-core
.
The naming is a bit confusing. Basically, they are trying to direct npm users to the jasmine-npm
module that adds Node.js-specific features to Jasmine.
jasmine-core
on npm points to the jasmine
repository, which has the main Jasmine code. It's used in multiple types of projects, including Ruby, Node, and Python.
jasmine
on npm points to the jasmine-npm
repository, and it depends upon the code in the jasmine
repository. Its README says: "This module allows you to run Jasmine specs for your Node.js code. The output will be displayed in your terminal by default."
Comparing jasmine vs. jasmine-core vs. jasmine-node vs. mocha
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With