Skip to content

cypher-evaluation.chain.test.ts test errors #2

Open
@infocz-shinjaehyun

Description

@infocz-shinjaehyun

I am an employee of infocz, neo4j's Korean partner company.
I am writing a comment because an error occurred while learning the "chatbot with typescript" course.

if i run this code "npm run test cypher-evaluation.chain.test.ts"
Line 61 "expect(found).toBe(true);" An error occurs in the code

The reason is that the error was not found through "error.includes("label Muvee does not exist"))" and the "found" variable could not be changed to "true".

So I checked the chain response error message through "console.log(errors)", changed it to "error.includes("Label 'Muvee' does not exist")", and the test was successful.

If you are experiencing the same problem, I hope this helps.

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