Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest test failures in React Native 0.72 #468

Open
jkepps opened this issue Jul 7, 2023 · 5 comments
Open

Jest test failures in React Native 0.72 #468

jkepps opened this issue Jul 7, 2023 · 5 comments

Comments

@jkepps
Copy link

jkepps commented Jul 7, 2023

After migrating to react native 0.72, a simple jest test with react testing library gives the following error about a hundred times and the test fails:
ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/index.test.tsx.

Here is the component and its test:

// src/components/form/CollapsibleFormField/TestComponent.tsx
import { useState } from 'react'
import { Text } from 'react-native'
import Collapsible from 'react-native-collapsible'

export const TestComponent = () => {
  const [visible, setVisible] = useState(false)

  return (
    <>
      <Text onPress={() => setVisible(current => !current)}>Press me</Text>
      <Collapsible collapsed={!visible}>
        <Text>Hello</Text>
      </Collapsible>
    </>
  )
}
// src/components/form/CollapsibleFormField/TestComponent.test.tsx
import { fireEvent, render, screen } from '@testing-library/react-native'

import { TestComponent } from './TestComponent'

describe('test', () => {
  it('test', () => {
    render(<TestComponent />)
    fireEvent.press(screen.getByText('Press me'))
    fireEvent.press(screen.getByText('Press me'))
    expect(screen.getByText('Hello')).toBeVisible()
  })
})

here is the test output:

yarn test src/components/form/CollapsibleFormField/TestComponent.test.tsx
yarn run v1.22.19
$ TZ=UTC jest --colors src/components/form/CollapsibleFormField/TestComponent.test.tsx

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)
 PASS  src/components/form/CollapsibleFormField/TestComponent.test.tsx
  testtest (32 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.854 s, estimated 2 s
Ran all test suites matching /src\/components\/form\/CollapsibleFormField\/TestComponent.test.tsx/i.

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/TestComponent.test.tsx.

      at Timeout._onTimeout (node_modules/react-native/jest/setup.js:414:26)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@michtntbrighte
Copy link

@jkepps did you find the solution? had same issue

@michtntbrighte
Copy link

I fixed it by adding jest.useFakeTimers(), on beforeEach block in the affected test files

@JadeMing
Copy link

JadeMing commented Dec 1, 2023

I fixed it by adding jest.useFakeTimers(), on beforeEach block in the affected test files

How about if must use the real timer in some test cases?

@gimi-anders
Copy link

I am also having this issue, and I cannot use fake timers.

@bfwalton
Copy link

bfwalton commented Mar 8, 2024

I encountered a similar issue with the same error, for some reason the CLI had the NODE_ENV set to "development". Unsetting the NODE_ENV resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants