File tree Expand file tree Collapse file tree
src/libs/actions/__mocks__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 "test:debug" : " TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand" ,
4747 "perf-test" : " NODE_OPTIONS=--experimental-vm-modules npx reassure" ,
4848 "typecheck" : " NODE_OPTIONS=--max_old_space_size=8192 tsc" ,
49- "lint" : " NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=312 --cache --cache-location=node_modules/.cache/eslint" ,
49+ "lint" : " NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=311 --cache --cache-location=node_modules/.cache/eslint" ,
5050 "lint-changed" : " NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh" ,
5151 "lint-watch" : " npx eslint-watch --watch --changed" ,
5252 "shellcheck" : " ./scripts/shellCheck.sh" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ type OnyxUpdatesMock = typeof OnyxUpdatesImport & {
1313} ;
1414
1515let lastUpdateIDAppliedToClient : number | undefined = 0 ;
16- Onyx . connect ( {
16+ // Use connectWithoutView because this is a mock for testing and does not involve any UI updates.
17+ Onyx . connectWithoutView ( {
1718 key : ONYXKEYS . ONYX_UPDATES_LAST_UPDATE_ID_APPLIED_TO_CLIENT ,
1819 callback : ( val ) => ( lastUpdateIDAppliedToClient = val ) ,
1920} ) ;
You can’t perform that action at this time.
0 commit comments