Skip to content

chore(test): Add react tests - #10240

Merged
Pessimistress merged 2 commits into
masterfrom
x/react-tests
Apr 18, 2026
Merged

Pessimistress merged 2 commits into
masterfrom
x/react-tests

Conversation

@Pessimistress

Copy link
Copy Markdown
Collaborator

Change List

  • Improve react module test coverage

@coveralls

coveralls commented Apr 18, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.869% (+0.5%) from 83.405% — x/react-tests into master

Base automatically changed from x/react-names to master April 18, 2026 00:36

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see. Hopefully react tests are a lot easier to author in vitest.

});
}

test('DeckGL#widgets React widget wrappers mount/unmount', async () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

expect(deck.setProps).toHaveBeenLastCalledWith({widgets});
});

test('useWidget warns when deck widgets prop conflicts with React widgets', () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So great to have these in tests

@Pessimistress
Pessimistress merged commit e49b49a into master Apr 18, 2026
5 checks passed
@Pessimistress
Pessimistress deleted the x/react-tests branch April 18, 2026 01:39
felixpalmer pushed a commit that referenced this pull request Apr 30, 2026
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.

3 participants