issues
search
rangle
/
ngCourse2
An Angular Course from Rangle.io
Other
184
stars
126
forks
source link
Update - TDD Testing
#961
Open
AbdellaToronto
opened
3 years ago
AbdellaToronto
commented
3 years ago
TDD Testing
The Testing Toolchain
[ ] Should Phantom-js be removed?
Test Setup
[ ] Could the angular2-redux-starter repo be renamed and updated?
Karma Configuration
[ ] Check the props if any are deprecated or removed
[ ] Update plugins: formatting (uses require(...))
[ ] Webpack no longer used in karma conf?
[ ] coverageReporter no longer valid?
[ ] Update official documentation link to
http://karma-runner.github.io/6.3/config/configuration-file.html
Executing Test Scripts
[ ] Update install command to use karma-cli instead?
Testing Components
Injecting Dependencies and DOM Changes
[ ] Paragraph 3: change “provided” to “provide”
Quote.spec.ts
[ ] initTestEnvironment can be done in main.ts
[ ] Follow angular’s example on testing here:
https://stackblitz.com/angular/dnbnpbjkapoy?file=src%2Fmain.ts
[ ] async(...) should change to waitForAsync(...) ?
Overriding Components for Testing
[ ] Worth mentioning overrideProvider, overrideTemplateUsingTestingModule ?
Testing Services
Testing HTTP Requests
[x] Example should import HttpClient
Using MockBackend
[x] This whole page should be removed
Using HttpTestingModule
[ ] Remove reference to angular version?
Testing Redux
Testing Simple Actions
[ ] Example should make use of @angular-redux/store
[ ] If this is meant to be testing ngrx actions/reducers, could the example use @ngrx/store/testing artifacts?
[ ] Use of jasmine-marbles ?
TDD Testing
The Testing Toolchain
Test Setup
Karma Configuration
Executing Test Scripts
Testing Components
Injecting Dependencies and DOM Changes
Quote.spec.ts
Overriding Components for Testing
Testing Services
Testing HTTP Requests
Using MockBackend
Using HttpTestingModule
Testing Redux
Testing Simple Actions