Skip to content

Commit

Permalink
chore(test): add test for the case tags have hook mutator and client …
Browse files Browse the repository at this point in the history
…is react-query (#1619)
  • Loading branch information
yoshi2no authored Sep 9, 2024
1 parent 19ff0e0 commit 108abc8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/configs/react-query.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,26 @@ export default defineConfig({
target: '../specifications/petstore.yaml',
},
},
tagHookMutator: {
output: {
target: '../generated/react-query/tag-hook-mutator/endpoints.ts',
schemas: '../generated/react-query/tag-hook-mutator/model',
client: 'react-query',
override: {
tags: {
pets: {
mutator: {
path: '../mutators/use-custom-instance.ts',
name: 'useCustomInstance',
},
},
},
},
},
input: {
target: '../specifications/petstore.yaml',
},
},
formData: {
output: {
target: '../generated/react-query/form-data/endpoints.ts',
Expand Down

0 comments on commit 108abc8

Please sign in to comment.