Skip to content

Version Packages#19

Merged
shairez merged 1 commit into
mainfrom
changeset-release/main
Jan 15, 2026
Merged

Version Packages#19
shairez merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

vitest-browser-angular@0.3.0

Minor Changes

  • ✨ renamed RenderConfig type to ComponentRenderOptions (by @shairez in #18)

    RenderConfig is now deprecated and will be removed in a future version. Use ComponentRenderOptions instead.`

  • ✨ return container element (by @shairez in #18)

    Now you can access the component's host element via the container property.
    This is basically a shortcut for fixture.nativeElement.

    test('renders component with service provider', async () => {
      const { container, fixture } = await render(HelloWorldComponent);
    
      expect(container).toBe(fixture.nativeElement);
    });
  • ✨ decorated render result with element locators (which start with the baseElement) (by @shairez in #18)

    Now you can do this:

    test('renders component with service provider', async () => {
      const screen = await render(HelloWorldComponent);
      await expect.element(screen.getByText('Hello World')).toBeVisible(); // uses the baseElement as the root element for the query selector
    });
  • ✨ add baseElement (by @shairez in #18)

    Now default locators will be based on the baseElement instead of the component element.
    This helps with testing components which project to a portal.

  • ✨ renamed component to locator to match other vitest-browser libraries api (by @shairez in #18)

    component is now deprecated and will be removed in a future version. Use locator instead.

@shairez shairez merged commit a05738b into main Jan 15, 2026
@shairez shairez deleted the changeset-release/main branch January 15, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant