Skip to content

Commit

Permalink
Clarify absolute test mocks configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Oct 23, 2023
1 parent b8ea5cb commit 303250f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/source/code-generation/codegen-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,10 @@ This option outputs all of your generated test mocks in a single directory.

Specify the directory for your test mocks using the `path` parameter. This is resolved as a relative path from the directory containing your `apollo-codegen-config.json` file when using the CLI. Use the `accessModifier` property to control the visibility of the generated code.

> **Note:** When using this option, you are responsible for ensuring the generated test mocks are linked to your test target.
>
> Test mocks generated this way may also be manually embedded in a test utility module that is imported by your test target.
> **Note:**
> * When using this option, you are responsible for ensuring the generated test mocks are linked to your test target.
> * Test mocks generated this way may also be manually embedded in a test utility module that is imported by your test target.
> * Test mocks are required to be in a target or module that is separate from the schema module and will always include `import` statements linking the schema module.
## Output options

Expand Down Expand Up @@ -754,4 +755,4 @@ Below is an example that illustrates an `apollo-codegen-config.json` where every
"warningsOnDeprecatedUsage" : "exclude"
}
}
```
```

0 comments on commit 303250f

Please sign in to comment.