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(); }); }); });