Skip to content

[Bug]: TypeError: RequestInit: Expected signal ("AbortSignal {}") to be an instance of AbortSignal. #832

@tmkx

Description

@tmkx

Version

System:
  OS: macOS 26.2
  CPU: (12) arm64 Apple M3 Pro
  Memory: 643.41 MB / 36.00 GB
  Shell: 5.9 - /bin/zsh
Browsers:
  Chrome: 143.0.7499.170
  Safari: 26.2
npmPackages:
  @rstest/core: ^0.7.8 => 0.7.8

Details

fetch with signal is not working in the jsdom environment and Node.js 24.

vitest-dev/vitest#8390

Reproduce link

Reproduce Steps

Node.js 24

test('fetch', async () => {
  const ac = new AbortController();
  await fetch('https://example.com', {
    signal: ac.signal,
  });
});
export default defineConfig({
  testEnvironment: 'jsdom',
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions