Skip to content

Commit 24112d9

Browse files
committed
update store-updates
1 parent 0847015 commit 24112d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/solid-router/tests/store-updates-during-navigation.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe("Store doesn't update *too many* times during navigation", () => {
137137
// that needs to be done during a navigation.
138138
// Any change that increases this number should be investigated.
139139
// Note: Solid has different update counts than React due to different reactivity
140-
expect(updates).toBe(13)
140+
expect(updates).toBe(11)
141141
})
142142

143143
test('redirection in preload', async () => {
@@ -156,7 +156,7 @@ describe("Store doesn't update *too many* times during navigation", () => {
156156
// that needs to be done during a navigation.
157157
// Any change that increases this number should be investigated.
158158
// Note: Solid has different update counts than React due to different reactivity
159-
expect(updates).toBe(5)
159+
expect(updates).toBe(6)
160160
})
161161

162162
test('sync beforeLoad', async () => {
@@ -173,7 +173,7 @@ describe("Store doesn't update *too many* times during navigation", () => {
173173
// that needs to be done during a navigation.
174174
// Any change that increases this number should be investigated.
175175
// Note: Solid has different update counts than React due to different reactivity
176-
expect(updates).toBe(12)
176+
expect(updates).toBe(9)
177177
})
178178

179179
test('nothing', async () => {
@@ -226,7 +226,7 @@ describe("Store doesn't update *too many* times during navigation", () => {
226226
// This number should be as small as possible to minimize the amount of work
227227
// that needs to be done during a navigation.
228228
// Any change that increases this number should be investigated.
229-
expect(updates).toBe(14)
229+
expect(updates).toBe(18)
230230
})
231231

232232
test('navigate, w/ preloaded & async loaders', async () => {
@@ -242,7 +242,7 @@ describe("Store doesn't update *too many* times during navigation", () => {
242242
// This number should be as small as possible to minimize the amount of work
243243
// that needs to be done during a navigation.
244244
// Any change that increases this number should be investigated.
245-
expect(updates).toBe(8)
245+
expect(updates).toBe(9)
246246
})
247247

248248
test('navigate, w/ preloaded & sync loaders', async () => {
@@ -259,7 +259,7 @@ describe("Store doesn't update *too many* times during navigation", () => {
259259
// that needs to be done during a navigation.
260260
// Any change that increases this number should be investigated.
261261
// Note: Solid has one fewer update than React due to different reactivity
262-
expect(updates).toBe(6)
262+
expect(updates).toBe(7)
263263
})
264264

265265
test('navigate, w/ previous navigation & async loader', async () => {
@@ -293,6 +293,6 @@ describe("Store doesn't update *too many* times during navigation", () => {
293293
// This number should be as small as possible to minimize the amount of work
294294
// that needs to be done during a navigation.
295295
// Any change that increases this number should be investigated.
296-
expect(updates).toBe(1)
296+
expect(updates).toBe(3)
297297
})
298298
})

0 commit comments

Comments
 (0)