* Port Relay decorator from 1js into facade
* Fix @types/react conflict
* Setup relay store
* Temporary solution to Relay module declaration error
* Relay stories working
* Working relay and apollo stories in same package
* Move Feedback.stories.tsx
* Working mutations
* Some cleanup
* Extract decorator types to shared file
* Type-safety with shared decorator
* Apollo fragment-based stories
* almost working tests
* improve command and rename
* fix regex to work on windows
* get tests to run (3 failures remaining)
* apollo decorator working with shared code, time to reimplement MockPayloadGenerator for relay
* correct types and almost working impl
* more fixes, todo: independency of stories, error scenario
* fix mutation failure story
* fix independency of stories
* fix tsc
* refactor some exports and fix todos
* add todos
* readme
* Add documentation of new properties
* Move sentence
* try to sort out dependencies
* move to folders
* cleanup: renames and exposing same utils
* test utils
* Change files
* working separate entry points
* fix path
* Change files
* use optional peer deps
* remove not needed change
* add missing option to pass generateFunction
* use lib version
* fix inconsistencies between apollo/relay stories
* fix tests
* cleanup
* Update docs and some imports
* Add FAQ for `generateFunction` and remove outdated fragment FAQ
* Add subpath to docs and make sure subpaths are used everywhere
* Fix CI
* update docs
* use stronger typings
---------
Co-authored-by: Jakob Hansen <jakobhansen@microsoft.com>
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
* bump react
* Change files
* use strict mode in stories and tests
* bump node version
* make strict mode hack a little clearer
---------
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
* Add interceptor
* ad tests for nova eventing interceptor
* add README
* Change files
* fix one test
* fix how bubble is called
---------
Co-authored-by: Kerryn Frampton <kerrynb@microsoft.com>
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
* make test for compiler work on windows
* use newer version of duct tape
* Change files
* deduplicate deps
* fix registry
---------
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
* add possibility to pass options to mock client
* fix wrong function name in readme
* Change files
---------
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
By bumping apollo-react-relay-duct-tape, now we are able to use useRefetchableFragment and usePaginationFragment hooks, but they weren't exposed by nova-facade. Therefore, the scope of this PR is to add these hooks, following the same signatures as graphitation.
---------
Co-authored-by: EUROPE\dragoshomner <dragoshomner@microsoft.com>
Co-authored-by: Kerryn Frampton <56459261+kerrynf@users.noreply.github.com>
* fix decorator to stop overriding parameters provided by the story
* Change files
* add test for empty parameters
---------
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
* install storybook and bump graphitation
move operation utils
make mock environment a bit more generic
add first version of the decorator
add peer dependency
try bumping graphitation relay complier as well
Change files
initial example
use older version of complier
generate types
add storybook
[DO NOT MERGE] add autogenerated stories
fix lage config
remove stories
align version of test types
use makeDecorator api
add codegen
add initial story
add more loaders
use proper loader
* fix schema loading and decorator
* [almost] working
* add sample tests
* add test using nova test utils directly
* fix mutation
* one step closer
* fix issues with typename
* add error message handling partial
* use latest
* Change files
* fix react version mismatch
* update dependencies
* add working reject story
* add loading state test
* add explanatory comment
* fix storybook warning
* add another explanatory comment
* use satisfies and add comment about storybook change
* update docs
* adjust readme
* update versions
* bump storybook and use id
* remove redundant optional chaining
* Update packages/nova-react-test-utils/README.md
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
* simplify preview
* adjust readme
* fix warning inside test
* update to set environment on parameters
* fix typo
---------
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>