Skip to content

💅 [noMisplacedAssertion] false positive when using {test,describe}.concurrent.*() #10635

Description

@noftaly

Environment information

Details
CLI:
  Version:                      2.5.0
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           macos

Environment:
  BIOME_DISTRIBUTION:                npm
  BIOME_LOG_PATH:                    unset
  BIOME_LOG_PREFIX_NAME:             unset
  BIOME_LOG_LEVEL:                   unset
  BIOME_LOG_KIND:                    unset
  BIOME_CONFIG_PATH:                 unset
  BIOME_THREADS:                     unset
  BIOME_WATCHER_KIND:                unset
  BIOME_WATCHER_POLLING_INTERVAL:    unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v24.4.1
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         npm/11.13.0

Biome Configuration:
  Status:                       Loaded successfully.
  Path:                         biome.json
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  true
  HTML full support enabled:    unset

Rule name

noMisplacedAssertion

Playground link

https://biomejs.dev/playground/?lineWidth=120&lintRules=noMisplacedAssertion&tab=formatter&pane=Diagnostics&code=dABlAHMAdAAuAGUAYQBjAGgAKABhAHIAcgApACgAJwB3AG8AcgBrAHMAIABhAHMAIABlAHgAcABlAGMAdABlAGQAJwAsACAAKAApACAAPQA%2BACAAewAKACAAIAAgACAAZQB4AHAAZQBjAHQAKAApADsACgB9ACkAOwAKAAoAdABlAHMAdAAuAGMAbwBuAGMAdQByAHIAZQBuAHQALgBlAGEAYwBoACgAYQByAHIAKQAoACcAZABvAGUAcwBuAHQAIAB3AG8AcgBrACAAYQBzACAAZQB4AHAAZQBjAHQAZQBkACcALAAgACgAKQAgAD0APgAgAHsACgAgACAAIAAgAGUAeABwAGUAYwB0ACgAKQA7AAoAfQApADsA&language=ts

Expected result

It should work with test.concurrent.each the same way it does for test.each.
I don't know about other test runners, but this exists in vitest at least.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterArea: linterL-JavaScriptLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Good first issueStatus: Good for newcomers

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions