Skip to main content
Back to registry

javascript-typescript-jest

github/awesome-copilot

Installs7
Install command
npx skills add https://github.com/github/awesome-copilot --skill javascript-typescript-jest
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
- Name test files with .test.ts or .test.js suffix - Place test files next to the code they test or in a dedicated __tests__ directory - Use descriptive test names that explain the expected behavior - Use nested describe blocks to organize related tests - Follow the pattern: describe('Component/Function/Class', () => { it('should do something', () => {}) }) - Mock external dependencies (APIs, databases, etc.) to isolate your tests - Use jest.mock() for module-level mocks - Use jest.spyOn() for specific function mocks - Use mockImplementation() or mockReturnValue() to define mock behavior - Reset mocks between tests with jest.resetAllMocks() in afterEach - Always return promises or use async/await syntax in tests - Use resolves / rejects matchers for promises - Set appropriate timeouts for slow tests with jest.setTimeout() - Use snapshot tests for UI components or complex objects that change infrequently - Keep snapshots small and focused - Review snapshot changes carefully before committing - Use React Testing Library over Enzyme for testing components - Test user behavior and component accessibility - Query elements by accessibility roles, labels, or text content - Use userEvent over fireEvent for more realistic user interactions - Basic: expect(value).toBe(expected) , expect(value).toEqual(expected) - Truthiness: expect(value).toBeTruthy() , expect(value).toBeFalsy() -...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does javascript-typescript-jest do?

javascript-typescript-jest is listed in SkillJury, but the source summary is still sparse.

Is javascript-typescript-jest good?

javascript-typescript-jest does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does javascript-typescript-jest work with?

javascript-typescript-jest currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to javascript-typescript-jest?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install javascript-typescript-jest?

npx skills add https://github.com/github/awesome-copilot --skill javascript-typescript-jest

Related skills

More from github/awesome-copilot

Related skills

Alternatives in Software Engineering