Jest test fails if files are imported from `/dist` folder
I have this simple test file:

```tsx
// File: __tests__/index.test.tsx

import * as React from 'react';
import { render, screen } from '@testing-library/react';

import Page from '../src/page';

import '@testing-library/jest-dom';

describe('Home', () => {
  it('renders a heading', () => {
    render(<Page />);

    const heading = screen.getByRole('heading', {
      name: /Redefining SaaS/i,
    });

    expect(heading).toBeInTheDocument();
  });
});
```

And this component:

```tsx
// File: src/page.tsx

import * as React from 'react';
import CheckIcon from '@phosphor-icons/react/dist/icons/Check';

export default function Page() {
  return (
    <div>
      <h1>Redefining SaaS</h1>
      <div>
        <CheckIcon />
      </div>
    </div>
  );
}
```

Apparently the test fails if I try to import the file from `/dist/icons` folder.

```
● Test suite failed to run

    Cannot find module '@phosphor-icons/react/dist/icons/Check' from 'src/page'
```

 It works if I change the import line to:

```tsx
import { Check as CheckIcon } from '@phosphor-icons/react';
```

Checking the package.json file of this module, it seems that `./dist/*` import is allowed.