angularjs - Angular protractor load modules -
In my own testing application, I want to use methods for random data generation, for that I use this library I do It has only one file, but if there are many files in the library, then I want to use it manually without downloading, install only from npm install somelib
When I run my sample, if it is installed with NPM in the library, I get errors, I did not find the library, for example:
//example-spec.js var Chance = requirement ('chance'); Describe ("example", function () (this should be "(...", function () {expcect (chance.phone ()) .not bannel ();});});
How to use the projector and import the module from NPM?
spot The document says that the necessary statement should be
var chance = essential ('chance');
In addition, your NPM installer should probably say npm installs --save-dev opportunity
.
With those two steps, you should be Education should good.
Comments
Post a Comment