test: refactor deprecate-helpers.ts to warning-helpers.ts (#46837)

Add a generic expectWarningMessages and start checking warning names

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
trop[bot] 2025-04-28 23:39:57 -05:00 committed by GitHub
parent dcd8224c15
commit 069ca16b9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 69 additions and 35 deletions

View file

@ -4,8 +4,8 @@ import { expect } from 'chai';
import * as path from 'node:path';
import { expectDeprecationMessages } from './lib/deprecate-helpers';
import { ifdescribe, ifit, itremote, useRemoteContext } from './lib/spec-helpers';
import { expectDeprecationMessages } from './lib/warning-helpers';
describe('nativeImage module', () => {
const fixturesPath = path.join(__dirname, 'fixtures');