mantinedev / next-app-template

Mantine + Next.js app router template (7.0+)
https://mantine.dev/guides/next
MIT License
262 stars 124 forks source link

Failed to run Example Test #9

Closed daddasoft closed 1 year ago

daddasoft commented 1 year ago

The This not run because the method doesn't exist on the jest Object :

  expect(screen.getByText('this guide')).toHaveAttribute(
      'href',
      'https://mantine.dev/guides/next/'
    );

need to be :

 expect(screen.getByText('this guide')).toHaveProperty(
      'href',
      'https://mantine.dev/guides/next/'
    );
daddasoft commented 1 year ago

I make a pull request : #10

ericledonge commented 1 year ago

The original version with toHaveAttribute, works fine for me.

daddasoft commented 1 year ago

yeah it's work for me also when i use another environment (gitpod) i don't know why ?