Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1280,13 +1280,13 @@ describe('Timeline profiler', () => {
});

describe('when profiling', () => {
beforeEach(() => {
utils.act(() => store.profilerStore.startProfiling());
});

describe('with legacy render', () => {
const {render: legacyRender} = getLegacyRenderImplementation();

beforeEach(() => {
utils.act(() => store.profilerStore.startProfiling());
});

// @reactVersion <= 18.2
// @reactVersion >= 18.0
it('should mark sync render without suspends or state updates', () => {
Expand Down Expand Up @@ -1537,6 +1537,10 @@ describe('Timeline profiler', () => {

const {render: modernRender} = getModernRenderImplementation();

beforeEach(() => {
utils.act(() => store.profilerStore.startProfiling());
});

it('should mark concurrent render without suspends or state updates', () => {
utils.act(() => modernRender(<div />));

Expand Down
4 changes: 3 additions & 1 deletion packages/react-devtools-shared/src/__tests__/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ beforeEach(() => {
},
});

const store = new Store(((bridge: any): FrontendBridge));
const store = new Store(((bridge: any): FrontendBridge), {
supportsTimeline: true,
});

const agent = new Agent(((bridge: any): BackendBridge));
const hook = global.__REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Loading