Skip to content

Commit

Permalink
Add annotation for after for minitest-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jan 8, 2025
1 parent 12762cc commit bb7eefd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
},
"minitest": {
},
"minitest-hooks": {
"requires": [
"minitest/hooks"
]
},
"mocha": {
"requires": [
"mocha/api"
Expand Down
6 changes: 6 additions & 0 deletions rbi/annotations/minitest-hooks.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# typed: true

class Minitest::HooksSpec
sig { params(arg: Symbol, block: T.proc.bind(T.attached_class).void).void }
def self.after(arg, &block); end
end
5 changes: 5 additions & 0 deletions rbi/annotations/minitest.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,8 @@ module Minitest::Assertions
sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
def refute_same(exp, act, msg = nil); end
end

class Minitest::HooksSpec
sig { params(arg: Symbol, block: T.proc.bind(T.attached_class).void).void }
def self.after(arg, &block); end
end

0 comments on commit bb7eefd

Please sign in to comment.