We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description This line: https://github.com/Shopify/packwerk/blob/main/lib/packwerk/disable_sorbet.rb#L7 seems to be disabling Sorbet runtime checks globally when running inside Spring.
To Reproduce Write a test like this:
def test_sorbet_error assert_nil T.must(nil) assert_equal :always, ::T::Private::RuntimeLevels.default_checked_level end
Expected Behaviour Test should fails because nil is passed to T.must
nil
T.must
Actual Behaviour Test fails because ::T::Private::RuntimeLevels.default_checked_level is :never
::T::Private::RuntimeLevels.default_checked_level
:never
Version Information
Additional Context This is while running on Shopify's dev environenent.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
This line: https://github.com/Shopify/packwerk/blob/main/lib/packwerk/disable_sorbet.rb#L7 seems to be disabling Sorbet runtime checks globally when running inside Spring.
To Reproduce
Write a test like this:
Expected Behaviour
Test should fails because
nil
is passed toT.must
Actual Behaviour
Test fails because
::T::Private::RuntimeLevels.default_checked_level
is:never
Version Information
Additional Context
This is while running on Shopify's dev environenent.
The text was updated successfully, but these errors were encountered: