-
Notifications
You must be signed in to change notification settings - Fork 210
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
bug(auth): Typescript not checking all files #17940
Conversation
9acff8a
to
f9451ae
Compare
@@ -365,7 +365,8 @@ describe('CustomerPlanMover', () => { | |||
it("returns false if the customer does not have a price that's excluded", () => { | |||
const result = customerPlanMover.isCustomerExcluded([ | |||
{ | |||
...subscription1, | |||
// TODO: Either provide full mock, or reduce type required isCustomerExcluded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should we file a bug for this so we track/bury it in the backlog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do this as unknown as Type pattern quite a bit. Maybe it's fine. I'll let @StaberindeZA make the call.
"bin/**/*.js", | ||
"bin/**/*.ts", | ||
"lib/**/*.ts", | ||
"lib/**/*.js", | ||
"scripts/*.ts", | ||
"scripts/*.js", | ||
"test/**/*.ts", | ||
"test/**/*.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed no weird .jsx or .tsx files.
git ls-files packages/fxa-auth-server/(bin|lib|scripts|test)/ | grep -Eo "\.[a-z]+$" | sort | uniq -c | sort -rn
343 .js
197 .ts
139 .json
85 .txt
77 .mjml
76 .ftl
8 .scss
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking. Server so, hopefully not!
8cfef67
to
4d20a37
Compare
@StaberindeZA BTW, looks we we are hitting OOMs in CI tests. If you got any suggestions let me know. |
4d20a37
to
2f9ebd7
Compare
25e249e
to
42e15ad
Compare
Because: - While working on FXA-10460, I noticed that auth-server wasn't actually targeting all typescript files for compilation. This commit: - Targets all files - Fixes ensuing errors
42e15ad
to
e3e2ba8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Because
This pull request
Issue that this pull request solves
Closes: FXA-10676
Checklist
Put an
x
in the boxes that applyScreenshots (Optional)
Please attach the screenshots of the changes made in case of change in user interface.
Other information (Optional)
This is a fast follow to #17938. Also it's good to note that make this PR reasonable in size,
noImplicitAny
was set to false. We can address this at a later point in time. There were enough of these errors that it didn't make sense to fix them here, and to fix them properly actual types should be tracked down.