@@ -2863,11 +2863,13 @@ export function warnIfNotScopedWithMatchingAct(fiber: Fiber): void {
28632863 "It looks like you're using the wrong act() around your test interactions.\n" +
28642864 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' +
28652865 '// for react-dom:\n' +
2866- "import {act} from 'react-dom/test-utils';\n" +
2866+ 'import {act} fr' +
2867+ "om 'react-dom/test-utils';\n" +
28672868 '// ...\n' +
28682869 'act(() => ...);\n\n' +
28692870 '// for react-test-renderer:\n' +
2870- "import TestRenderer from 'react-test-renderer';\n" +
2871+ 'import TestRenderer fr' +
2872+ "om react-test-renderer';\n" +
28712873 'const {act} = TestRenderer;\n' +
28722874 '// ...\n' +
28732875 'act(() => ...);' +
@@ -2953,7 +2955,8 @@ export function warnIfUnmockedScheduler(fiber: Fiber) {
29532955 'In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' +
29542956 'to guarantee consistent behaviour across tests and browsers. ' +
29552957 'For example, with jest: \n' +
2956- "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" +
2958+ "jest.mock('scheduler', () => require" +
2959+ "('scheduler/unstable_mock'));\n\n" +
29572960 'For more info, visit https://fb.me/react-mock-scheduler' ,
29582961 ) ;
29592962 } else if ( warnAboutUnmockedScheduler === true ) {
@@ -2962,7 +2965,8 @@ export function warnIfUnmockedScheduler(fiber: Fiber) {
29622965 'Starting from React v17, the "scheduler" module will need to be mocked ' +
29632966 'to guarantee consistent behaviour across tests and browsers. ' +
29642967 'For example, with jest: \n' +
2965- "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" +
2968+ "jest.mock('scheduler', () => require" +
2969+ "('scheduler/unstable_mock'));\n\n" +
29662970 'For more info, visit https://fb.me/react-mock-scheduler' ,
29672971 ) ;
29682972 }
0 commit comments