Skip to content

How to test i18next #390

Closed
Closed
@josoroma-zz

Description

@josoroma-zz

I was wondering how to test the NEXT text here:

test('LayoutFooter text content', () => {
  const props = {
    handleOnClick: () => {},
  };

  const { container } = render(<LayoutFooter {...props} />);
  const fc = container.firstChild;
  expect(fc.textContent).toBe('NEXT');
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions