Skip to content

Commit

Permalink
refactor: make the test env colorMode a default not a dictator
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Oct 10, 2024
1 parent 257a698 commit d436a31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/eui/cypress/support/setup/mount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const mountCommand = (
options: MountOptions = {}
): ReturnType<typeof mount> => {
const { providerProps } = options;
return cypressMount(<EuiProvider {...providerProps} colorMode="LIGHT">{children}</EuiProvider>);
return cypressMount(
<EuiProvider colorMode="LIGHT" {...providerProps}>
{children}
</EuiProvider>
);
};

// Export only the type to not confuse code-completion tools
Expand Down

0 comments on commit d436a31

Please sign in to comment.