Skip to content

Snapshot files are always empty | Stuck on Step 5 - "Testing" #1471

@matgianesini

Description

@matgianesini

I can't figure out something about jest testing of the server. I'm at Server Step 3.2, and my test passes, and the console also reads "Snapshots: 1 written". The problem is that the file getChats.test.ts.snap gets created but it only ever says "*** Contents:" and nothing else.

To add to my confusion, I downloaded your original repo and git checked out the relevant step, but I encountered the same behavior. Lastly as a sanity check I did a clean clone of the repo, stayed in Master branch, and opened the .snap files in /tests/queries/snapshots. They all say "*** Contents:" and nothing else. Even though looking at the file in the browser, on the same branch, you can see its contents.

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