chore: update .gitignore and improve coding standards documentation
- Added .cursor/sessions/* to .gitignore to prevent session files from being tracked. - Enhanced coding standards in SKILL.md by adding semicolons to TypeScript examples for consistency. - Improved formatting in continuous learning, detail layout, and other SKILL.md files for better readability. These changes aim to streamline development processes and maintain code quality across the project.
This commit is contained in:
@@ -42,14 +42,14 @@ Canonical sample: `apps/web/src/apps/main/modules/example/full-page/`. Copy that
|
||||
### Package component tests (Testing Library)
|
||||
|
||||
```tsx
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import { FieldTextInput } from '@repo/ui/form'
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { FieldTextInput } from '@repo/ui/form';
|
||||
|
||||
it('renders the field label', () => {
|
||||
render(<FieldTextInput name="code" label="Code" />)
|
||||
expect(screen.getByLabelText('Code')).toBeInTheDocument()
|
||||
})
|
||||
render(<FieldTextInput name="code" label="Code" />);
|
||||
expect(screen.getByLabelText('Code')).toBeInTheDocument();
|
||||
});
|
||||
```
|
||||
|
||||
### Mock remote data services (not a database)
|
||||
@@ -63,7 +63,7 @@ vi.mock('../../domain/factories', () => ({
|
||||
update: vi.fn(),
|
||||
delete: vi.fn(),
|
||||
},
|
||||
}))
|
||||
}));
|
||||
```
|
||||
|
||||
## Browser verification (`apps/web`)
|
||||
@@ -92,9 +92,11 @@ Do not add Playwright unless the user explicitly asks.
|
||||
**Command:** pnpm test
|
||||
|
||||
## Summary
|
||||
|
||||
- Total / passed / failed
|
||||
|
||||
## Failed
|
||||
|
||||
- File — assertion
|
||||
- Recommended fix
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user