Skip to content

Commit

Permalink
test: Enable all startTransition options
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 8, 2025
1 parent 97b127e commit c9dcc7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions packages/e2e/next/cypress/e2e/shared/render-count.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const histories = ['replace', 'push'] as const
for (const hook of hooks) {
for (const shallow of shallows) {
for (const history of histories) {
for (const startTransition of shallow === false
? [false, true]
: [false]) {
for (const startTransition of [false, true]) {
for (const delay of shallow === false ? [0, 50] : [0]) {
testRenderCount({
path: `/app/render-count/${hook}/${shallow}/${history}/${startTransition}?delay=${delay}`,
Expand All @@ -35,9 +33,7 @@ for (const hook of hooks) {
for (const hook of hooks) {
for (const shallow of shallows) {
for (const history of histories) {
for (const startTransition of shallow === false
? [false, true]
: [false]) {
for (const startTransition of [false, true]) {
for (const delay of shallow === false ? [0, 50] : [0]) {
testRenderCount({
path: `/pages/render-count/${hook}/${shallow}/${history}/${startTransition}?delay=${delay}`,
Expand Down
4 changes: 1 addition & 3 deletions packages/e2e/react/cypress/e2e/shared/render-count.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const histories = ['replace', 'push'] as const
for (const hook of hooks) {
for (const shallow of shallows) {
for (const history of histories) {
for (const startTransition of shallow === false
? [false, true]
: [false]) {
for (const startTransition of [false, true]) {
testRenderCount({
path: `/render-count/${hook}/${shallow}/${history}/${startTransition}`,
hook,
Expand Down

0 comments on commit c9dcc7b

Please sign in to comment.