File tree 4 files changed +42
-4
lines changed
packages/angular_devkit/build_angular/src/webpack/plugins/karma
tests/legacy-cli/e2e/tests/test
4 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ commands:
137
137
- run : npm install -g yarn@1.22.10 @bazel/bazelisk@${BAZELISK_VERSION}
138
138
- run : node --version
139
139
- run : yarn --version
140
+ - run : choco install -y msys2
140
141
141
142
setup_bazel_rbe :
142
143
parameters :
Original file line number Diff line number Diff line change 30
30
// All served files with the latest timestamps
31
31
% MAPPINGS %
32
32
</ script >
33
- < script src ="_karma_webpack_/runtime.js " crossorigin ="anonymous " type =" module " > </ script >
34
- < script src ="_karma_webpack_/polyfills.js " crossorigin ="anonymous " type =" module " > </ script >
33
+ < script src ="_karma_webpack_/runtime.js " crossorigin ="anonymous "> </ script >
34
+ < script src ="_karma_webpack_/polyfills.js " crossorigin ="anonymous "> </ script >
35
35
<!-- Dynamically replaced with <script> tags -->
36
36
%SCRIPTS%
37
37
< script src ="_karma_webpack_/scripts.js " crossorigin ="anonymous " defer > </ script >
Original file line number Diff line number Diff line change 32
32
// All served files with the latest timestamps
33
33
% MAPPINGS %
34
34
</ script >
35
- < script src ="_karma_webpack_/runtime.js " crossorigin ="anonymous " type =" module " > </ script >
36
- < script src ="_karma_webpack_/polyfills.js " crossorigin ="anonymous " type =" module " > </ script >
35
+ < script src ="_karma_webpack_/runtime.js " crossorigin ="anonymous "> </ script >
36
+ < script src ="_karma_webpack_/polyfills.js " crossorigin ="anonymous "> </ script >
37
37
<!-- Dynamically replaced with <script> tags -->
38
38
%SCRIPTS%
39
39
< script src ="_karma_webpack_/scripts.js " crossorigin ="anonymous " defer > </ script >
Original file line number Diff line number Diff line change
1
+ import { ng } from '../../utils/process' ;
2
+ import { writeFile } from '../../utils/fs' ;
3
+
4
+ export default async function ( ) {
5
+ await writeFile (
6
+ 'src/app/app.component.spec.ts' ,
7
+ `
8
+ import { TestBed } from '@angular/core/testing';
9
+ import { RouterTestingModule } from '@angular/router/testing';
10
+ import { AppComponent } from './app.component';
11
+
12
+ describe('AppComponent', () => {
13
+ beforeAll(() => {
14
+ jasmine.clock().install();
15
+ });
16
+
17
+ afterAll(() => {
18
+ jasmine.clock().uninstall();
19
+ });
20
+
21
+ beforeEach(async () => {
22
+ await TestBed.configureTestingModule({
23
+ imports: [RouterTestingModule],
24
+ declarations: [AppComponent],
25
+ }).compileComponents();
26
+ });
27
+
28
+ it('should create the app', () => {
29
+ const fixture = TestBed.createComponent(AppComponent);
30
+ expect(fixture.componentInstance).toBeTruthy();
31
+ });
32
+ });
33
+ ` ,
34
+ ) ;
35
+
36
+ await ng ( 'test' , '--watch=false' ) ;
37
+ }
You can’t perform that action at this time.
0 commit comments