Me myself and I - Front end developer @S_A_N_T_E_C_H - In love with unit tests since 2013 - In love with TypeScript since 2014 - Paris TypeScript co Organizer @paulsouche / https://github.com/paulsouche / [email protected] #typescriptertalk @S_A_N_T_E_C_H
What are we going to talk about ? How to test your assets Back end with mocha / supertest Front end with karma / jasmine Front end with protractor Everything in TypeScript @paulsouche / https://github.com/paulsouche / [email protected] #typescriptertalk @S_A_N_T_E_C_H
What are we not going to talk about ? mocha / karma / jasmine … internals @paulsouche / https://github.com/paulsouche / [email protected] #typescriptertalk @S_A_N_T_E_C_H
What are we not going to talk about ? TDD / BDD / DDD Unit tests / integration tests / e2e tests @paulsouche / https://github.com/paulsouche / [email protected] #typescriptertalk @S_A_N_T_E_C_H
Backend : Yeah but… What if ? @paulsouche / https://github.com/paulsouche / [email protected] I need to stub some methods ? I’ve real repositories ? I’m using HAPI ? Use sinon.js Use proxyquire supertest compatible but other solutions exist #typescriptertalk @S_A_N_T_E_C_H
Frontend : Alternatives @paulsouche / https://github.com/paulsouche / [email protected] #typescriptertalk @S_A_N_T_E_C_H Make test run in jsdom Faster because no browser Faster because no bundle Hard to polyfill