Cristian Marquez
@thecapnews
github.com/xthecapx
Testing your apps with Jasime
class CreatingAnApp() { person: Person; constructor() { if (fileSystem.existsSync('./creating-an-app.spec.ts')) { person.lazy = true; } else { person.happy = true; } } }
"Let's start with a clear message"
View
Component
Service
¿What should be tested?
Directive
Unit Testing the component
async(() => { TestBed.configureTestingModule({ ... }).compileComponents(); })
new ClassName( ... );
Unit Testing
Integration Testing
Unit Testing the view
Unit Testing the services
Services
¿How should you test your angular directives?
By xthecapx