Skip to content

test: add expectDeprecationWarning to common

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

There are multiple tests that use the same boilerplate to test that deprecation warnings are correctly emmited. This adds a new common function to do that and changes the tests to use it.

/cc @nodejs/testing @addaleax

Merge request reports

Loading