Skip to content

test(contracts): add upgradeMockFacet1AnyVersion and remove untested_…#1221

Draft
marcosio wants to merge 1 commit into
developmentfrom
BBND-1827-initialize-improvements
Draft

test(contracts): add upgradeMockFacet1AnyVersion and remove untested_…#1221
marcosio wants to merge 1 commit into
developmentfrom
BBND-1827-initialize-improvements

Conversation

@marcosio
Copy link
Copy Markdown
Contributor

@marcosio marcosio commented May 29, 2026

…initializers

  • add upgradeMockFacet1AnyVersion() to IMockFacet1 interface and MockFacet1 contract; uses onlyFacetRegistered with an empty _fromLastVersions array to exercise the if (length == 0) return early-exit branch in checkFacetRegistered
  • register upgradeMockFacet1AnyVersion selector in getStaticFunctionSelectors
  • delete untested_initializers.test.ts; all 10 initializer methods it covered already have full 3-case tests (AccountHasNoRole, happy path, FacetAlreadyRegistered) in their respective facet test files

Description

Screenshot from 2026-05-29 18-05-53

Type of change

  • Bug fix 🐞
  • New feature ✨
  • Breaking change 💥
  • Documentation update 📖
  • Refactor 🔧

Testing

Node version:

  • 20
  • 22
  • 24

Checklist

  • Style Guidelines followed ✅
  • Documentation Updated 📚
  • Linters - No New Warnings ⚠️
  • Local Tests Pass ✅
  • Effective Tests Added ✔️
  • No reduction of Coverage

…initializers

  - add upgradeMockFacet1AnyVersion() to IMockFacet1 interface and MockFacet1 contract;
  uses onlyFacetRegistered with an empty _fromLastVersions array to exercise the
  if (length == 0) return early-exit branch in checkFacetRegistered
  - register upgradeMockFacet1AnyVersion selector in getStaticFunctionSelectors
  - delete untested_initializers.test.ts; all 10 initializer methods it covered already
  have full 3-case tests (AccountHasNoRole, happy path, FacetAlreadyRegistered) in their
  respective facet test files

Signed-off-by: Marcos Serradilla Diez <marcos@io.builders>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant