Skip to content
Myr

types(compose): follow up #3932 (#3934)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* chore: moving the setup file of vitest * chore(compose): follow up #3932 * fix tests

authored by EdamAmex · committed by GitHub · parent 6659ea1 · Browse files · 2 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−6 removed

  • tests:+2 added−2 removed
  • other:+4 added−4 removed

2 files+6 added−6 removed

modified:src/compose.test.ts+2 added-2 removed
738 unmodified lines
739740 ctx.set('middleware', 0)741 ctx.set('next', 0)742743 await compose(middleware)(ctx, (ctx: Context, next: Next) => {743 await compose(middleware)(ctx, ((ctx: Context, next: Next) => {744 ctx.set('next', ctx.get('next') + 1)745 return next()746 })746 }) as Next)747748 expect(ctx.get('middleware')).toEqual(1)749 expect(ctx.get('next')).toEqual(1)750 })
1 unmodified line
modified:src/compose.ts+4 added-4 removed