Replace @testing-library/jest-dom with built-in vitest browser assertions

This commit is contained in:
Alejandro Celaya
2026-08-16 19:32:41 +02:00
parent ba73644871
commit 585d7c6f63
30 changed files with 305 additions and 429 deletions

View File

@@ -13,7 +13,7 @@ describe('context', () => {
}
it('throws when used outside of ContainerProvider', () => {
expect(() => render(<TestComponent name="foo" />)).toThrowError(
expect(() => render(<TestComponent name="foo" />)).toThrow(
'You cannot use "useDependencies" outside of a ContainerProvider',
);
});
@@ -25,7 +25,7 @@ describe('context', () => {
<TestComponent name="foo" />
</ContainerProvider>,
),
).toThrowError('Dependency with name "foo" not found in container');
).toThrow('Dependency with name "foo" not found in container');
});
it('gets dependency from container', () => {