Skip to content

Commit

Permalink
Merge pull request Shopify#300 from Shopify/andyw8/add-annotation-for…
Browse files Browse the repository at this point in the history
…-minitest-afer

Add annotation for `after` for Minitest::HooksSpec
  • Loading branch information
andyw8 authored Feb 3, 2025
2 parents 7dcee95 + 85a61aa commit 10e18c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@
"lhm": {},
"lhm-shopify": {},
"minitest": {},
"minitest-hooks": {
"dependencies": [
"minitest"
],
"requires": [
"minitest/hooks"
]
},
"mocha": {
"requires": [
"mocha/api"
Expand Down
9 changes: 9 additions & 0 deletions rbi/annotations/minitest-hooks.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# typed: true

class Minitest::HooksSpec
sig { params(type: T.nilable(Symbol), block: T.proc.bind(T.attached_class).void).void }
def self.before(type = nil, &block); end

sig { params(type: T.nilable(Symbol), block: T.proc.bind(T.attached_class).void).void }
def self.after(type = nil, &block); end
end

0 comments on commit 10e18c6

Please sign in to comment.