• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / marketplace / 20438811440

22 Dec 2025 05:10PM UTC coverage: 66.424% (-0.07%) from 66.495%
20438811440

push

github

web-flow
feat: upgrade to React 18 (#2549)

* feat: migrate from render to createRoot for React 18 (#2546)

* fix: migrate tests from @testing-library/react-hooks to @testing-library/react (#2547)

* chore: update dependencies for React 18

- Update react and react-dom to ^18.3.1
- Update @types/react and @types/react-dom to ^18.2.0
- Update @testing-library/react to ^14.0.0

* chore: update decentraland-dapps v26.0.0

* chore: decentraland-transactions v 2.24.2

* fix: date-fns imports (#2560)

* fix: store translations (#2559)

* refactor: fix React types (#2558)

* test: fix mocks and test setup (#2557)

* chore: update config files (#2556)

* fix: dispatch fetchTranslationsRequest on store init

* refactor: fix React types (ReactNode, FormEvent, CheckboxProps)

* ci: remove --legacy-peer-deps from workflows (#2561)

* test: added libsodium-wrappers-sumo mock file

## Breaking Changes
React 18 upgrade and related tooling changes.

2813 of 5513 branches covered (51.02%)

Branch coverage included in aggregate %.

13 of 20 new or added lines in 9 files covered. (65.0%)

4 existing lines in 4 files now uncovered.

8250 of 11142 relevant lines covered (74.04%)

75.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/webapp/src/modules/tile/reducer.ts
1
import { LoadingState, loadingReducer } from 'decentraland-dapps/dist/modules/loading/reducer'
35✔
2
import { AtlasTile } from 'decentraland-ui'
3
import {
4
  FetchTilesRequestAction,
5
  FetchTilesSuccessAction,
6
  FetchTilesFailureAction,
7
  FETCH_TILES_REQUEST,
8
  FETCH_TILES_SUCCESS,
9
  FETCH_TILES_FAILURE
10
} from './actions'
35✔
11

12
export type TileState = {
13
  data: Record<string, AtlasTile>
14
  lastModified: Date | null
15
  loading: LoadingState
16
  error: string | null
17
}
18

19
const INITIAL_STATE: TileState = {
35✔
20
  data: {},
21
  lastModified: null,
22
  loading: [],
23
  error: null
24
}
25

26
type TileReducerAction = FetchTilesRequestAction | FetchTilesSuccessAction | FetchTilesFailureAction
27

28
export function tileReducer(state = INITIAL_STATE, action: TileReducerAction) {
320✔
29
  switch (action.type) {
2,084!
30
    case FETCH_TILES_REQUEST: {
31
      return {
266✔
32
        ...state,
33
        lastModified: null,
34
        loading: loadingReducer(state.loading, action)
35
      }
36
    }
37
    case FETCH_TILES_SUCCESS: {
38
      return {
×
39
        ...state,
40
        loading: loadingReducer(state.loading, action),
41
        lastModified: action.payload.lastModified,
42
        error: null,
43
        data: action.payload.tiles
44
      }
45
    }
46
    case FETCH_TILES_FAILURE: {
UNCOV
47
      return {
×
48
        ...state,
49
        loading: loadingReducer(state.loading, action),
50
        error: action.payload.error
51
      }
52
    }
53
    default:
54
      return state
1,818✔
55
  }
56
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc