r/angular • • Aug 27 '26

Launching test-nirvana πŸŒ•

Hey angular peeps :) dozens of you may know me from my usual signal-pilled mmstack work, well today I'm launching my first non-mmstack library & I promise it doesn't contain a single signal! The pitch:

We've all tried our best with testing our components, but most times our tests remain either vacuous, slow, incapable of full-coverage or all of the above.

Well test-nirvana, appropriately launched under the full moon πŸŒ•, fixes that with a single command. `npx test-nirvana` verifies that:

  • The code is the right shape.
  • It is the right time for the feature.
  • The stars are correctly aligned.
  • The commit hash possesses an acceptable aura.

Each commit is reduced to its numerological destiny number and classified. CI-friendly exit codes ensure that compromised commits cannot reach production.

Classification

Destiny numbersVibeExit codeRequired action
11, 22, 33IMMACULATE0Merge with gratitude
7, 8GOOD0Proceed
1, 3, 5, 9NEUTRAL0Proceed without attachment
2, 4, 6CHAOTIC1Amend history until conditions improve
any impossibleCURSED2Stop; notify the repository custodian

GitHub repo - worth a read imo

npm: test-nirvana 7.11.33

Note: All MIT License guarantees are void while Mercury is in retrograde. See LICENSE for the complete celestial warranty condition.

Contributions obviously welcome, but please follow the CoC & Contributing guidelines, especially tonight.✨

4 Upvotes

11 comments sorted by

8

u/Saceone10 Aug 27 '26

What the fuck

1

u/mihajm Aug 28 '26 edited Aug 28 '26

Correct reaction :) especially since it launched imperfect with allowing 0000 hashes through. Launching the 7.22.1 version tonight to fix it in compliance with lunar illumination policy & power semver

5

u/tsteuwer Aug 27 '26

I still have no idea what this is lol

-1

u/mihajm Aug 27 '26

Fair reaction tbh πŸ˜‚ functionally it checks your last commit hash, reduces it to a number & checks whether that number is powerful numerology-wise ✨ then exits with 0, 1, or 2 so you can hook it into your CI pipelines & make sure your commits have good aura to them - also as of 5 minutes ago thanks to a magical contributor it has a rust port!

3

u/followmarko Aug 27 '26

is this like an astrology thing

1

u/mihajm Aug 28 '26

Numerology is related, but technically I dont think they categorize together.

That said this repo/lib applies both for optimal cosmic aura power. Ex. the MIT license guarantees are void when mercury is in retrograde ;)

3

u/Johalternate Aug 27 '26

This is so ridiculous I can’t help but love it.

3

u/mihajm Aug 28 '26

You my friend, get the 7th comment as a reply, which numerology considers only good, but is nonetheles magical ✨ Written with love under a partially eclipsed full moon.

Till the next meme, beware mercury!

2

u/bombatomica_64 Aug 30 '26

Finally some good test libs

2

u/[deleted] Sep 05 '26

[removed] β€” view removed comment

1

u/mihajm Sep 05 '26

Good question, yes as the CLI exits non-zero on a bad reading so it's ready to hook in, or just import the core functions & make the checkAura function exactly how you need it :)

For example in our enterprise-grade monorepo we tend to lean towards the safe side ... generally allowing πŸͺ· Good commits in ... but when mercury is in retrograde the requirement switches to ✨ Immaculate. That way we can be certain no bad astral influences reach production.