File tree Expand file tree Collapse file tree 5 files changed +247
-258
lines changed Expand file tree Collapse file tree 5 files changed +247
-258
lines changed Original file line number Diff line number Diff line change 51
51
"babel-jest" : " 23.4.2" ,
52
52
"codelyzer" : " 4.4.2" ,
53
53
"husky" : " 1.1.3" ,
54
- "jest" : " 23.4.1 " ,
55
- "jest-junit" : " 5.1 .0" ,
56
- "jest-preset-angular" : " 6.0.0 " ,
54
+ "jest" : " 23.6.0 " ,
55
+ "jest-junit" : " 5.2 .0" ,
56
+ "jest-preset-angular" : " 6.0.2 " ,
57
57
"jest-zone-patch" : " 0.0.8" ,
58
58
"lerna" : " 3.4.3" ,
59
59
"lint-staged" : " 7.2.0" ,
63
63
"redux" : " 4.0.0" ,
64
64
"redux-logger" : " 2.10.2" ,
65
65
"rimraf" : " 2.6.2" ,
66
- "rxjs" : " 6.2.1 " ,
66
+ "rxjs" : " 6.3.3 " ,
67
67
"tsickle" : " 0.32.1" ,
68
68
"tslib" : " 1.9.3" ,
69
69
"tslint" : " 5.11.0" ,
Original file line number Diff line number Diff line change 32
32
"redux" : " ^4.0.1" ,
33
33
"redux-logger" : " ^3.0.1" ,
34
34
"redux-observable" : " ^1.0.0" ,
35
- "rxjs" : " 6.2.1 " ,
35
+ "rxjs" : " ^6.3.3 " ,
36
36
"zone.js" : " ^0.8.9"
37
37
},
38
38
"devDependencies" : {
45
45
"@types/ramda" : " ^0.24.18" ,
46
46
"@types/redux-logger" : " ^3.0.0" ,
47
47
"jest" : " ^23.6.0" ,
48
- "jest-preset-angular" : " ^ 6.0.2" ,
48
+ "jest-preset-angular" : " 6.0.2" ,
49
49
"protractor" : " ^5.4.1" ,
50
50
"ts-node" : " ^7.0.1" ,
51
51
"typescript" : " >=3.1.1 < 3.2"
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import { By } from '@angular/platform-browser';
4
4
import { CoreModule } from '../../core/module' ;
5
5
import { AnimalType } from '../model' ;
6
6
import { AnimalListComponent } from './component' ;
7
+ import {
8
+ BrowserDynamicTestingModule ,
9
+ platformBrowserDynamicTesting ,
10
+ } from '@angular/platform-browser-dynamic/testing' ;
7
11
8
12
@Component ( { selector : 'zoo-animal' , template : '' } )
9
13
class MockAnimalComponent {
@@ -13,6 +17,12 @@ class MockAnimalComponent {
13
17
14
18
describe ( 'AnimalListComponent' , ( ) => {
15
19
beforeEach ( async ( ( ) => {
20
+ TestBed . resetTestEnvironment ( ) ;
21
+ TestBed . initTestEnvironment (
22
+ BrowserDynamicTestingModule ,
23
+ platformBrowserDynamicTesting ( ) ,
24
+ ) ;
25
+
16
26
TestBed . configureTestingModule ( {
17
27
declarations : [ AnimalListComponent , MockAnimalComponent ] ,
18
28
imports : [ CoreModule ] ,
Original file line number Diff line number Diff line change 1
1
import { async , TestBed } from '@angular/core/testing' ;
2
2
import { RouterTestingModule } from '@angular/router/testing' ;
3
3
import { AppComponent } from './component' ;
4
+ import {
5
+ platformBrowserDynamicTesting ,
6
+ BrowserDynamicTestingModule ,
7
+ } from '@angular/platform-browser-dynamic/testing' ;
4
8
5
9
describe ( 'AppComponent' , ( ) => {
6
10
beforeEach ( async ( ( ) => {
11
+ TestBed . resetTestEnvironment ( ) ;
12
+ TestBed . initTestEnvironment (
13
+ BrowserDynamicTestingModule ,
14
+ platformBrowserDynamicTesting ( ) ,
15
+ ) ;
16
+
7
17
TestBed . configureTestingModule ( {
8
18
declarations : [ AppComponent ] ,
9
19
imports : [ RouterTestingModule ] ,
You can’t perform that action at this time.
0 commit comments