How can I execute a test scripts with Stackblitz using an Angular project? I see into the package.json a karma packages, so I am wondering if there is the possibily to test my components
https://stackblitz.com/edit/redux-in-actions?file=package.json
thanks Andrea
One approach is using Jasmine (which is a behavior-driven development framework) to run Angular tests in Stackblitz.
Stackblitz Demo
Brief description as step by step guide
Main steps:
/src/global-jasmine.ts
/src/styles.scss
/src/main-testing.ts file
Add tests
/src/app/app.component.spec.ts
e.g.:Run the tests
Use
"main": "src/main-testing.ts",
instead of"main": "src/main.ts",
in fileangular.json