# FAILURE\_THRESHOLD

Create a file called `cypress-image-diff.config.js`. This should live along side `cypress.config.js`, in the root of the directory.

💢 Default value: `0`

```
// cypress-image-diff.config.js
const config = {
  FAILURE_THRESHOLD: 0.1,
};

module.exports = config;
```

This pass all tests as long as the difference between the baseline and comparison is not greater than 10%


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cypress.visual-image-diff.dev/getting-started/custom-config-file/failure_threshold.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
