Skip to content

Instantly share code, notes, and snippets.

@AugustoCalaca
AugustoCalaca / TransactionList.spec.tsx
Last active February 7, 2023 22:27
test using relay hooks, relay-test-utils and react-testing-library
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import { MockPayloadGenerator } from 'relay-test-utils';
import { useRelayEnvironment } from 'react-relay/hooks';
import TransactionList from '../TransactionList';
afterEach(cleanup);
describe('<TransactionList />', () => {
it('should reject query', () => {