Skip to content

Angular 18 template: Module '"@angular/core/testing"' has no exported member 'async' #1377

@RDB-DA

Description

@RDB-DA

async was removed in Angular 12
The spec of counter component i.e. "counter.component.spec.ts"

import { async, ComponentFixture, TestBed } from '@angular/core/testing';

To Reproduce
Module '"@angular/core/testing"' has no exported member 'async'.
Check screenshot

Expected behavior
async was deprecated because it conflicted with the JavaScript async keyword.
waitForAsync does the same thing: it wraps an asynchronous test function and ensures Angular waits for async tasks

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions