Skip to content

Calling rerender from renderSuspended throws an error nextTick is not defined #1562

@adamdehaven

Description

@adamdehaven

Environment

Operating system macOS 25.2.0
CPU Apple M3 Max (14 cores)
Node.js version v22.14.0
nuxt/cli version 3.32.0
Package manager pnpm@10.28.0
Nuxt version 4.2.2
Nitro version 2.12.9
Builder vite@7.3.0
Config -
Modules -

Reproduction

// Mount a component
const { rerender } = await renderSuspended(Foo, {
  props: {
    attribute: {
      key: 'platform',
      values: [
        { value: 'Airlines', api_count: 3 },
        { value: 'Airport', api_count: 0 },
      ],
    },
  },
})

// ...assertions

// Rerender with new props
await rerender({ attribute: {
  key: 'domain',
  values: [
    { value: 'Internal', api_count: 2 },
    { value: 'External', api_count: 0 },
  ],
}})

See output: ReferenceError: nextTick is not defined

Image

Describe the bug

After upgrading to @nuxt/test-utils@3.23.0 calling rerender with new props throws ReferenceError: nextTick is not defined

Additional context

This appears to originate from here #1522

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions