Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

[test] Import fixtures that mirror Flow tests upstream. #4

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

alloy
Copy link
Member

@alloy alloy commented Jan 16, 2018

I took the liberty to copy the test fixtures I made while working on my Babel7 approach and mirror exactly the Flow ones. I’m sure they’ll need some adjusting for how we’ll be defining types, but could be helpful as a guidance.

export interface InputHasArrayVariables {
input?: {
clientMutationId?: string | null;
storyIds?: ReadonlyArray<string | null> | null;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the ReadonlyArray here.

@kastermester
Copy link
Contributor

Thanks! This looks great! I was thinking I'd have to take a look at how to best import the test fixtures from the compiler and get a working test setup, now that the focus goes away from getting some proof of concept into writing proper quality production grade code.

I haven't had a decent look into how the test setup is done in the relay-compiler codebase. I figure getting a proper test setup working should be priority number 1 when working on the plugin.

@kastermester kastermester merged commit 4e9371e into master Jan 17, 2018
@alloy alloy deleted the test-fixtures branch January 17, 2018 11:45
@alloy alloy mentioned this pull request Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants