Skip to content

Conversation

@Linkmetal
Copy link
Collaborator

No description provided.

@Linkmetal Linkmetal changed the title Feat/deck layer composer tests Feat: deck layer composer tests Jan 28, 2026
@j8seangel j8seangel self-requested a review January 29, 2026 07:51
Copy link
Collaborator

@j8seangel j8seangel left a comment

Choose a reason for hiding this comment

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

There are 4 tests failing for me and I don't understand why, can you take a look?
See for example the log of layer: visible = true but then it fails

× should pass visible property from dataview config
Image

BTW I've added a couple of commits, please review them too

it('should create BaseMapImageLayer for BasemapImage type', () => {
const dataview = createMockDataview({
config: { type: DataviewType.BasemapImage },
datasets: [
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we could also create a mock dataset helper function?

)

await waitFor(() => {
expect(result.current).toHaveLength(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

here it looks like it is only validating if the layer exists, maybe we should check that dataviewToDeckLayer was called 3 times?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On line 165 is being asserted that the funcion is called once, it's only called once because it already handle the dataview with the 3 datasets merged

@Linkmetal Linkmetal marked this pull request as ready for review February 6, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants