From 50d7c1ec804576dbbaeac68b68c6d4b9ea7214f4 Mon Sep 17 00:00:00 2001
From: Patryk Kuniczak
Date: Thu, 12 Feb 2026 22:35:27 +0100
Subject: [PATCH] chore: Change browser tests to fix deprecated warning (#2117)
Co-authored-by: Aaron
---
packages/browser/src/__tests__/index.test.ts | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/packages/browser/src/__tests__/index.test.ts b/packages/browser/src/__tests__/index.test.ts
index 07b40f51..a5e9f588 100644
--- a/packages/browser/src/__tests__/index.test.ts
+++ b/packages/browser/src/__tests__/index.test.ts
@@ -5,19 +5,19 @@ import { browser, type Browser } from '../index';
describe('browser', () => {
describe('types', () => {
it('should provide types via the Browser import', () => {
- expectTypeOf().toMatchTypeOf();
- expectTypeOf().toMatchTypeOf();
- expectTypeOf().toMatchTypeOf();
+ expectTypeOf().toEqualTypeOf();
+ expectTypeOf().toEqualTypeOf();
+ expectTypeOf().toEqualTypeOf();
});
it('should provide values via the browser import', () => {
- expectTypeOf(browser.runtime.id).toMatchTypeOf();
- expectTypeOf(
- browser.storage.local,
- ).toMatchTypeOf();
- expectTypeOf(
- browser.i18n.detectLanguage('Hello, world!'),
- ).resolves.toMatchTypeOf();
+ expectTypeOf(browser.runtime.id).toEqualTypeOf();
+ expectTypeOf<
+ typeof browser.storage.local
+ >().toEqualTypeOf();
+ expectTypeOf<
+ typeof browser.i18n.detectLanguage
+ >().returns.resolves.toEqualTypeOf();
});
});
});