lively-electrician-90916
06/14/2025, 3:42 PMGrowthBookProvider
- when running my tests I randomly get multiple Warning: An update to GrowthBookProvider inside a test was not wrapped in act(...).
warnings. Has anyone else had this issue? Does anyone know how to get these messages to disappear?fresh-football-47124
await act (async () => {})?
fresh-football-47124
lively-electrician-90916
06/14/2025, 3:51 PMrenderRouter('src/app', { initialUrl });
await act(async () => {
await Promise.resolve();
});
// Added to try, but still get the errors even with a 50ms delay
await waitFor(
() => {
// Intentionally empty; we're just waiting
},
{ timeout: 50 }
);
All network requests are mocked as well, so it can't be caused by GB waiting for a network response eitherlively-electrician-90916
06/14/2025, 9:21 PMuseEffect
the warnings go away