Skip to content

Fix the Testing docs #3499

@FranjoMindek

Description

@FranjoMindek

Describe the bug
Fix bugs in the Testing docs code: https://wasp.sh/docs/project/testing

  1. This should be !== 0
export function areThereAnyTasks(tasks: Task[]): boolean {
  return tasks.length === 0;
}
  1. React component test example sets value={task.isDone} but then uses toBeChecked() test, which will fail. We should set checked.

There might be more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions