Skip to content

Instantly share code, notes, and snippets.

View meza's full-sized avatar
👋
tweet me if I missed a PR

Meza meza

👋
tweet me if I missed a PR
  • London, United Kingdom
View GitHub Profile
@meza
meza / test-invsort-config.json
Last active April 5, 2025 17:56
A test config file for the inventory sorter mod
{
"preventSortForScreens": [],
"hideButtonsForScreens": [
"minecraft:shulker_box"
]
}

After a bit of a hectic few days I managed to get basic gametests running.

I followed the primer and it got more and more clear with every new readthrough.

The primer has an ExampleTestInstance which is the E2ETests file of mine. This is extremely ugly for neo 1.21.5 but it proves the point. A TestInstance (yarn) which is the equivalent of GameTestInstance in mojmap is a "single test". Its start method is the body of the test. Since my E2ETests class is an old test for a different setup, it just now acts as a runner of my old tests but it does the trick - kinda. I don't recommend this in the long run but it's a good step in my refactoring.

Now this `TestInst