Skip to content

address-book.test chai has no member expect #1095

@sudo-pel

Description

@sudo-pel

I was directed to post an issue on the repo after contacting support.

I am trying to run the first test on the address book challenge, following the solution and I am being given the error "No test files found". I tried to fix this using the solution shown here (#1052), which worked somewhat, but now I am running into a different error;

test/address-book.test.ts:19:27 - error TS2339: Property 'name' does not exist on type 'Function'.

19     expect(ab.constructor.name).to.eq("AddressBook");

which is not encountered in the course. I have made no other alterations to any of the files.

Additionally, despite installing chai, in the address-book.test.ts file, I am being told that module "chai" has no member "expect".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions