-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
TypeScript problems found in spec file, which is from page generated by ionic cli. It reports "Cannot find name 'async'."
Expected Behavior
No problems found
Steps to Reproduce
ionic start photo-gallery tabs --type=angular --capacitor
ionic g page pages/home
- open src/app/pages/home/home.page.spec.ts in vscode
> beforeEach(async(() => {
~~~~~
> fixture = TestBed.createComponent(HomePage);
> component = fixture.componentInstance;
> fixture.detectChanges();
> }));
- problems found in above code
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 7.1.1
Ionic Framework : @ionic/angular 7.0.7
@angular-devkit/build-angular : 16.0.2
@angular-devkit/schematics : 16.0.2
@angular/cli : 16.0.2
@ionic/angular-toolkit : 9.0.0
Capacitor:
Capacitor CLI : 5.0.3
@capacitor/android : not installed
@capacitor/core : 5.0.3
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.7.2
System:
NodeJS : v16.14.0
npm : 8.3.1
OS : macOS Unknown
Additional Information
Ionic v6 generate page use waitForAsync
instead of async
.
Ionic v7 generate component also use waitForAsync
Old related changes: ionic-team/ionic-framework#22154