Skip to content

Tests fail when run all together #1

@bluerface

Description

@bluerface

The api tests and the auth tests each run fine individually (using .only), but when you run them in series they fail.

Specifically the authenticated route returns a 404 article does not exist, which appears to be because the article id is invalid.

Console logging the 'useful ids' object returned from the seed show the same ids each time, which should not be the case because the database should be being dropped and reseeded.

There was an issue where the done callback in the after hook was being called prematurely, and therefore the database drop was potentially occurring after the new seeding, however fixing this did not resolve the problem and it would not explain why new ids are not being created.

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