I have the following test in a typescript nextjs project: 

import React from 'react';

import { renderWithReactIntl } from '@imdb/translations/utils/intlTestingHelper';

import { GenreRefiner } from './GenreRefiner';

const CHIP\_TAG\_TEST\_ID = 'chip\_tag\_test\_id';

jest.mock(
 '../../components/Refiners/ChipTags',
 () => ({
 ChipTags: jest.fn(() => (
 
 ))
 })
);

describe('GenreRefiner', () => {
 beforeEach(() => {
 jest.clearAllMocks();
 });

 it('GenreRefiner renders properly', () => {
 const { container } = renderWithReactIntl();

 expect(container.firstChild).not.toBeNull();
 });
});

When i run this, i get this error:

ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From packages/search/advancedSearch/components/Refiners/GenreRefiner.test.tsx.

Any ideas why?>
user