Skip to content

todos on <TimeZone getTodos /> not rendering in tests #142

@wykhuh

Description

@wykhuh

When I create a snapshot of <TimeZone getTodos />, the todos do not appear in snapshot. The api call isn't being resolved. What is the correct way to set up the test so the todos will be rendered in the snapshot?

test('should match the snapshot with todos', () => {
  let { container } = render(<TimeZone getTodos />);

  expect(container).toMatchSnapshot();
});

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