Cypress · Senior · Question 14 of 76

How can fixtures be kept in sync with the real API?

Show the answer

Correct answer: Generate or validate them against the schema or contracts

Explanation

Schema validation in CI fails when a fixture no longer matches the API, before UI tests silently test a fiction.

Further reading

Problem with a question

Cypress · Senior · question 14

Test yourself

Take the Cypress · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz