Elektrine lite

← Feed

@paulshryock@phpc.social

Post #4118980

2026-07-26 19:08 UTC

I think I can actually achieve this if I let everything be arguments passed to `it` and lock in the argument order. it: $1 = test case description $2 = expect $3 = first value $4 = assertion type $5 = second value That _could_ work. And then of course I'll want to allow `not` and bump everything else up by one if it's present: ```bash it "should have different words" expect this not to_be that ```

Replies (1)

  • @paulshryock@phpc.social 2026-07-26 19:10

    But I really liked the simplicity of: it: $1 = test case description $? = previous exit code Because then you can just run anything after it inside $(here) and you don't have to do it "our way". I guess that's the trade off with an API... make it flexible or make it specific. There are downsides to both. I should probably take some cues from Jest and Pest and just go with the specific "locked" argument order.

    Open ##4119030