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 MarbleTestingnpm install jasmine-marbles --save
Now we have finished the setup, so the time has come to write tests.