Skip to content

Custom ESM Loader warning suppression broken #3270

@IceQub3

Description

@IceQub3

Describe the bug

When I run tests, node prints

ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time

in suppress-warnings.cjs it is set to ignore both
--experimental-loader is an experimental feature. This feature could change at any time
Custom ESM Loaders is an experimental feature. This feature could change at any time

Its appears to me the message Custom ESM Loaders is an experimental feature and might change at any time should also be ignored

Reproduction

create an empty pnpm module
add a single test file with an empty test in it
add an npm script ot package.json "test": "vitest run src/**"
run pnpm test

System Info

I am using pnpm version 8.3.1

  System:
    OS: Linux 6.2 Fedora Linux 37 (Workstation Edition)
    CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
    Memory: 21.94 GB / 31.25 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Browsers:
    Firefox: 112.0
  npmPackages:
    @vitest/browser: ^0.30.1 => 0.30.1 
    @vitest/ui: ^0.30.1 => 0.30.1 
    vite: ^4.1.1 => 4.1.1 
    vitest: ^0.30.1 => 0.30.1

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions