Set up

Let's set up our environment correctly so we can write marble tests. We need the following:

  • The NPM library jasmine-marbles
  • A scaffolded Angular application

With that we scaffold our Angular project, like so:

ng new MarbleTesting

After the project has been scaffolded, it's time to add our NPM library, like so:

cd MarbleTesting
npm install jasmine-marbles --save

Now we have finished the setup, so the time has come to write tests.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.28.21