Skip to content

Global keepOpen() #246

@ajmas

Description

@ajmas

Is the a way to ensure keepOpen() is the default during a run, rather than needing to specify it every time? If this is already there, then I seem to have missed it.

Thinking of something like:

chai.use(chaiHttp({ keepOpen: true }));

I had previously been using 'supertest' and then was surprised to see my server closing between every test. In my case I am doing a full life-cycle test and keeping open is necessary and I wouldn't be expecting my test library to be impacting the running state of my express server.

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