mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 05:01:08 +02:00
style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
This commit is contained in:
parent
0241f5554c
commit
d36b321d9d
3952 changed files with 661498 additions and 739751 deletions
|
|
@ -36,7 +36,9 @@ describe('ExampleComponent', () => {
|
|||
});
|
||||
|
||||
it('should render with testID for automation', () => {
|
||||
const { getByTestId } = render(<ExampleComponent {...defaultProps} testID="example-component" />);
|
||||
const { getByTestId } = render(
|
||||
<ExampleComponent {...defaultProps} testID="example-component" />
|
||||
);
|
||||
|
||||
expect(getByTestId('example-component')).toBeTruthy();
|
||||
});
|
||||
|
|
@ -78,7 +80,9 @@ describe('ExampleComponent', () => {
|
|||
});
|
||||
|
||||
it('should call onLongPress when long pressed', () => {
|
||||
const { getByText } = render(<ExampleComponent {...defaultProps} onLongPress={mockOnLongPress} />);
|
||||
const { getByText } = render(
|
||||
<ExampleComponent {...defaultProps} onLongPress={mockOnLongPress} />
|
||||
);
|
||||
|
||||
fireEvent(getByText('Test Title'), 'onLongPress');
|
||||
|
||||
|
|
@ -242,7 +246,9 @@ describe('ExampleComponent', () => {
|
|||
});
|
||||
|
||||
it('should handle undefined props gracefully', () => {
|
||||
const { getByText } = render(<ExampleComponent title="Test" onPress={mockOnPress} description={undefined} />);
|
||||
const { getByText } = render(
|
||||
<ExampleComponent title="Test" onPress={mockOnPress} description={undefined} />
|
||||
);
|
||||
|
||||
expect(getByText('Test')).toBeTruthy();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue