refactor(tests-types): Refactor test types, always validating t8n BAL if present #1742
+466
−337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🗒️ Description
We were writing tests specific to BALs but now that we turned on all tests, some of the ordering checks from the specs were not getting caught. We should separate the static validation checks on the t8n BAL coming from the specs (
BlockAccessList) from the validation that happens against a definedBlockAccessListExpectationin a BAL-specific test.This PR moves the ordering and validation checks for the t8n BAL over to that class, as it should've probably been from the start. This way we always perform this validation on the BAL coming from t8n and IF we also define an expectation we only validate against the expectation in this second step.
This correctly catches duplicate entries from this report while filling tests: https://discord.com/channels/595666850260713488/1434985857823146059/1434999311812530176
✅ Checklist
toxchecks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx tox -e statictype(scope):.Cute Animal Picture