Write tests for the akash-network/console monorepo following established team patterns and reviewer expectations. Use this skill whenever you need to write, fix, review, or refactor tests in the console project — including unit tests, functional tests, integration tests, or E2E tests for both frontend (deploy-web) and backend (api, notifications, indexer, provider-proxy). Also trigger when the user mentions 'write tests', 'add tests', 'fix tests', 'test this', 'spec file', or asks about testing patterns in the console codebase. When in doubt about whether to use this skill for a testing task in this repo, USE IT.
90
86%
Does it follow best practices?
Impact
98%
1.81xAverage score across 3 eval scenarios
Passed
No known issues
API unit test structure and mocking conventions
setup() at describe bottom
0%
100%
No beforeEach
0%
100%
setup() inline param type
0%
100%
setup() no return type
0%
100%
setup() returns all mocks
0%
100%
Root describe uses .name
0%
100%
mock<T>() for mocks
100%
100%
mockConfigService for config
0%
100%
No module-level mocking
100%
100%
Explicit vitest imports
100%
100%
it() no 'should'
100%
100%
No if in assertions
100%
100%
Frontend DEPENDENCIES pattern and component DI
DEPENDENCIES export used
100%
100%
No vi.mock() module-level calls
50%
100%
MockComponents() used
0%
100%
setup() function pattern
0%
100%
getBy* for presence
100%
100%
queryBy* for absence
100%
100%
renderHook for hooks
100%
100%
Services not in DEPENDENCIES
80%
100%
it() no 'should'
100%
100%
Root describe naming
0%
100%
Explicit vitest imports
0%
100%
Functional test whitebox seeding and nock mocking
Whitebox DB seeding
100%
100%
Blackbox HTTP testing
30%
100%
nock for external mocking
0%
100%
No internal service mocking
60%
100%
Plain HTTP client
12%
100%
Shared DB setup reference
100%
100%
Function-based seeders
100%
100%
Race condition test
100%
100%
One endpoint per test
100%
100%
setup() pattern
0%
37%
it() no 'should'
100%
100%
609b56d
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.