Skip to content

Commit b790a69

Browse files
committed
Update assertions
1 parent e023bb2 commit b790a69

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

test/production/app-dir/actions-tree-shaking/basic/basic.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
expect(actionsRoutesState).toMatchObject({
2323
// only one server layer action
2424
'app/server/page': {
25-
rsc: 1,
25+
rsc: 3,
2626
},
2727
// only one browser layer action
2828
'app/client/page': {

test/production/app-dir/actions-tree-shaking/mixed-module-actions/mixed-module-actions.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121

2222
expect(actionsRoutesState).toMatchObject({
2323
'app/mixed-module/esm/page': {
24-
rsc: 1,
24+
rsc: 3,
2525
},
2626
// CJS import is not able to tree shake, so it will include all actions
2727
'app/mixed-module/cjs/page': {

test/production/app-dir/actions-tree-shaking/reexport/reexport.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ import { retry } from 'next-test-utils'
2727
rsc: process.env.TURBOPACK ? 3 : 1,
2828
},
2929
'app/namespace-reexport/client/page': {
30-
// Turbopack does not support tree-shaking export * as we don't have global information
31-
'action-browser': process.env.TURBOPACK ? 3 : 1,
30+
'action-browser': 1,
3231
},
3332
// We're not able to tree-shake these re-exports here in webpack mode
3433
'app/named-reexport/server/page': {
3534
// Turbopack supports tree-shaking these re-exports
36-
rsc: process.env.TURBOPACK ? 1 : 3,
35+
rsc: 3,
3736
},
3837
'app/named-reexport/client/page': {
3938
// Turbopack supports tree-shaking these re-exports

test/production/app-dir/actions-tree-shaking/shared-module-actions/shared-module-actions.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import {
2121

2222
expect(actionsRoutesState).toMatchObject({
2323
'app/server/one/page': {
24-
rsc: 1,
24+
rsc: 3,
2525
},
2626
'app/server/two/page': {
27-
rsc: 1,
27+
rsc: 3,
2828
},
2929
'app/client/one/page': {
3030
'action-browser': 1,

0 commit comments

Comments
 (0)