cybertk / cybertk/abao

More cleaner hook syntax

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
CoffeeScript
Stars
352
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Current hook syntax is a bit unclear, propose

``` coffee

hook 'GET /path'
.before (test, done) ->
done()
.after (test, done) ->
done()
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing hook syntax and its parsing or execution entry point in the abao codebase. Compare it with the proposed `.before` and `.after` form, then identify the relevant tests or add coverage that demonstrates the new syntax works for a GET hook.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.