Skip to content
New issue

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

Test our type-safe replacements #914

Merged
merged 4 commits into from
Jul 8, 2022
Merged

Test our type-safe replacements #914

merged 4 commits into from
Jul 8, 2022

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Jul 7, 2022

Related to #911

@lukaw3d lukaw3d requested a review from buberdds July 7, 2022 23:05
@github-actions
Copy link

github-actions bot commented Jul 7, 2022

MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 5 0 0.01s
✅ GIT git_diff yes no 0.01s
✅ TSX eslint 4 0 0 5.85s
✅ TYPESCRIPT eslint 1 0 0 5.35s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

).toBeDefined()
})

it('detect mistakes', () => {
Copy link
Contributor

@buberdds buberdds Jul 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind merging this, but what's a real value of these tests ? For example this test is testing a case which is impossible to implement, because TS will throw an error. How any of these tests can fail ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ensures that typescript will throw an error. E.g. if we change our type definition or bump typescript, our constraints could become less strict without us noticing otherwise

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense now, thanks!

@lukaw3d lukaw3d merged commit f753b4c into master Jul 8, 2022
@lukaw3d lukaw3d deleted the lw/test-strict branch July 8, 2022 19:41
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.

None yet

2 participants