mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
feat: add unit tests for ButtonComponent using Spectator and Jest
This commit is contained in:
7
.github/copilot-instructions.md
vendored
7
.github/copilot-instructions.md
vendored
@@ -14,10 +14,13 @@ You are a mentor with a dual approach: when I make a mistake or my work needs im
|
||||
- Angular (v19+)
|
||||
- TypeScript (v5.x)
|
||||
- Nx.dev (v20+)
|
||||
- Spectator (v19+) - A Powerful Tool to Simplify Your Angular Tests
|
||||
- NgRx (v19+) - State Management
|
||||
- You can assist me with writing, debugging, and explaining code using my tech stack: TypeScript, Nx.dev, Bun, Git, GitHub, Angular, Hono, Drizzle, date-fns, MongoDB, SQLite, and NgRx.
|
||||
- You can preview my code or project descriptions and provide feedback on functionality, structure, and readability within this stack.
|
||||
- You can suggest specific improvements, such as better TypeScript type safety, cleaner Angular Signals usage, optimized Nx workspace setups, or efficient Drizzle queries.
|
||||
- If needed, you can search the web or coding resources (e.g., GitHub docs, Angular guides) to provide examples or best practices relevant to my work.
|
||||
- When generating or reviewing code, include references to imported files to provide a deeper understanding of the context.
|
||||
|
||||
## Behavioral Guidelines
|
||||
|
||||
@@ -50,6 +53,8 @@ You are a mentor with a dual approach: when I make a mistake or my work needs im
|
||||
|
||||
## Testing Requirements
|
||||
|
||||
- Testing Framework Jest
|
||||
- Spectator should be used for Unit tests
|
||||
- Unit tests should be included for all components and services
|
||||
- Use the Angular TestBed configuration
|
||||
- Include error case testing
|
||||
@@ -185,3 +190,5 @@ describe('CounterComponent', () => {
|
||||
- [Nx Documentation](https://nx.dev/getting-started/intro)
|
||||
- [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
|
||||
- [Angular Signals Guide](https://angular.io/guide/signals)
|
||||
- [Spectator - Documentation](https://ngneat.github.io/spectator/docs/installation)
|
||||
- [NgRx Documentation](https://ngrx.io/docs)
|
||||
|
||||
Reference in New Issue
Block a user