.agents/skills/mojaz-testing-standards-patterns/SKILL.md
Testing standards and patterns
npx skillsauth add ZakariaAl-honyny/Mojaz .agents/skills/mojaz-testing-standards-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Naming: MethodName_Scenario_ExpectedResult
[Fact]
public async Task CreateApplicationAsync_UnderageApplicant_ReturnsValidationError()
{
// Arrange
var request = new CreateApplicationRequest { ... };
_settingsService.Setup(s => s.GetAsync("MIN_AGE_CATEGORY_B"))
.ReturnsAsync("18");
// Act
var result = await _sut.CreateApplicationAsync(request);
// Assert
result.Success.Should().BeFalse();
result.StatusCode.Should().Be(400);
result.Errors.Should().Contain(e => e.Contains("age"));
}
Frontend (Jest + React Testing Library)
Naming: "should [behavior] when [condition]"
TypeScript
describe('ApplicationWizard', () => {
it('should show age error when applicant is underage for category', () => {
// ...
});
});
E2E (Playwright)
Test complete user flows
Test in both Arabic and English
Test Dark and Light modes
Test responsive breakpoints
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
testing
Create and manage Agent Skills following the agentskills.io specification. Use when users want to create, validate, or modify skills for AI agents.
development
Security requirements — NON-NEGOTIABLE
data-ai
Master project rules for Mojaz platform