Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testでany型を使ってるのを消す #15

Open
mori-atsushi opened this issue Mar 23, 2019 · 0 comments
Open

testでany型を使ってるのを消す #15

mori-atsushi opened this issue Mar 23, 2019 · 0 comments
Labels
question Further information is requested stand by 待機中のIssue / コンフリクト等が起こる可能性あり

Comments

@mori-atsushi
Copy link
Contributor

mori-atsushi commented Mar 23, 2019

目的はなんですか

  • any型を使うのが良くない
  • createTestClientで用意したmutateではvariablesの型情報を正しく扱えない
describe('Mutations', () => {
  it('returns user', async () => {
    const { mutate } = createTestClient(server);
    const res = await mutate({
      query: undefined,
      mutation: LOGIN,
      variables: { email: '[email protected]', password: 'password' },
    } as any);
    expect(res).toMatchSnapshot();
  });
});

どのような方法が考えられますか

ライブラリの対応を待つ

議論はありますか

他に方法があれば

@mori-atsushi mori-atsushi added the todo 対応待ちのIssue label Mar 23, 2019
@mori-atsushi mori-atsushi added question Further information is requested stand by 待機中のIssue / コンフリクト等が起こる可能性あり and removed todo 対応待ちのIssue labels Mar 31, 2019
@mori-atsushi mori-atsushi changed the title typescriptの型を生成する testでany型を使ってるのを消す Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stand by 待機中のIssue / コンフリクト等が起こる可能性あり
Projects
None yet
Development

No branches or pull requests

2 participants