question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question - Reassure + Expo

See original GitHub issue

Description

Im trying to use Reassure with Expo and it display some errors as you see below.

Captura de Pantalla 2022-07-01 a la(s) 14 21 51

Anyone have any idea if Reassure should work with Expo or the error its related with something different?

Environment

"expo": "~45.0.0",
"react-native": "0.68.2",
"react": "17.0.2",
"jest": "^26.6.3",
"jest-expo": "^45.0.1",
"@testing-library/jest-native": "^4.0.5",
"@testing-library/react-native": "^10.1.1",
"react-test-renderer": "^17.0.2",
"reassure": "^0.1.0",

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mdjastrzebskicommented, Jul 11, 2022

@nicoache1 please check #75 for a correct Expo-based project setup. Generally it is the same as for React Native CLI project.

0reactions
sreggcommented, Sep 16, 2022

I’m also getting the same error message when running yarn reassure on a RN CLI project.

  console.error
    ❌ Reassure: measure code is running under incorrect Node.js configuration.
    Performance test code should be run in Jest with certain Node.js flags to increase measurements stability.
    Make sure you use the Reassure CLI and run it using "reassure" command.

reassure: v0.4.1 node: v14.17.6 yarn: v1.22.19

Here’s our test file:

import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { measurePerformance } from 'reassure';
import { SearchFiltersScreen } from '../../app/screens';
import { server } from '../mock-server/setupMockServer';
import { createLoggedInWrapper } from '../wrapper-providers';

const LoggedInWrapper = createLoggedInWrapper();
const Stack = createNativeStackNavigator();

const ComponentWithWrappers = () => (
  <LoggedInWrapper>
    <NavigationContainer>
      <Stack.Screen name="searchFilters" component={SearchFiltersScreen} />
    </NavigationContainer>
  </LoggedInWrapper>
);

describe('Search Filters Screen Performance', () => {
  beforeAll(() => server.listen());
  afterEach(() => server.resetHandlers());
  afterAll(() => server.close());

  test('Initial load', async () => {
    await measurePerformance(<ComponentWithWrappers />);
  });
});

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ice Breaker Questions for Trade Shows - Exhibitor Source
In person, people can walk away satisfied with every question answered and with a hope or a reassurance that their problems have been...
Read more >
Issues · callstack/reassure - GitHub
Performance testing companion for React and React Native - Issues · callstack/reassure.
Read more >
Writing a Thank You Email After a Career Fair | Indeed.com
One effective way to do this is to send a follow-up email after the fair is over. Thank you emails remind recruiters of...
Read more >
The Sequel Ending - The Stanley Parable Wiki Guide - IGN
As you arrive at the expo, you'll see that the Narrator has pulled ... The Stanley Parable 2 Reassurance Bucket - a bucket...
Read more >
The 20 Questions You Need to Ask at the Tech Demo for Your ...
Here are 20 questions to ask to your tech vendor to help you ... “Seeing examples or case studies of successful events is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found