-
Notifications
You must be signed in to change notification settings - Fork 69
chore(TS) Include .spec
files in tsconfig
#3076
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
82782eb
update tsconfig.json excludes
TheSonOfThomp 59171bf
update TS in testing-lib context spec
TheSonOfThomp 4174a45
updates tsconfigs
TheSonOfThomp 12a2950
lockfile
TheSonOfThomp df1e1ed
Update chat provider tsconfig.json
TheSonOfThomp 6e8e1ae
Update isValidDate.spec.ts
TheSonOfThomp 73c0308
Update hooks tsconfig.json
TheSonOfThomp b293740
update icon tsconfig.json
TheSonOfThomp 3c04337
update typography specs
TheSonOfThomp d62c568
updates charts specs
TheSonOfThomp 082d644
Update Button.spec.tsx
TheSonOfThomp 30e1fcc
Update FeaturesEmptyState.spec.tsx
TheSonOfThomp f8ed45d
add FIXME
TheSonOfThomp 938cbf1
changesets
TheSonOfThomp d6bf418
Update tsconfig-spec-files.md
TheSonOfThomp 3f95643
update tsconfig - descendants & popover
TheSonOfThomp 6f37c1c
updates descendants test utils
TheSonOfThomp 9d6cf0d
add @lg-tools/storybook-utils to hooks
TheSonOfThomp 07a1f66
Update PasswordInput.spec.tsx
TheSonOfThomp acdf9ff
Update SearchInput.testutils types
TheSonOfThomp 736e6e0
add @storybook/types to toast
TheSonOfThomp 715ea7a
Update Pagination.spec.tsx
TheSonOfThomp 13734a2
Update InfoSprinkle.spec.tsx
TheSonOfThomp 10a0d48
Update tsconfig.json
TheSonOfThomp e15b267
update table util types
TheSonOfThomp 9e21b3f
Update getNewSegmentValueFromInputValue.spec.ts
TheSonOfThomp fb65f4f
Update Menu.spec.tsx
TheSonOfThomp 01b3d02
Update tsconfig.json
TheSonOfThomp 81ee30e
merge
TheSonOfThomp 0d04e8b
fix renderCustomTooltip test util
TheSonOfThomp 89eb2a8
Update index.ts
TheSonOfThomp d462bf8
Merge branch 'main' into a/ts-spec
TheSonOfThomp eb92c42
update icon checksum
TheSonOfThomp b849fbe
Update Highlight.stories.tsx
TheSonOfThomp 9f81946
update icon types entry point
TheSonOfThomp 5b00553
ignore missing devDeps in validate
TheSonOfThomp 63d8c43
Merge branch 'main' into a/ts-spec
TheSonOfThomp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lg-chat/leafygreen-chat-provider': patch | ||
--- | ||
|
||
Resolves TS scoping errors by moving `test` utilities into `src`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@leafygreen-ui/hooks': patch | ||
--- | ||
|
||
Adds `react-test-renderer` as devDependency |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lg-tools/validate': minor | ||
--- | ||
|
||
Validate script no longer fails if a package is missing a `devDependency`. This was done due to a significant number of false positives, and since using `pnpm` to resolve packages should flag the true missing `devDeps` in the build, test, or stories step |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
--- | ||
'@leafygreen-ui/a11y': patch | ||
'@leafygreen-ui/avatar': patch | ||
'@leafygreen-ui/badge': patch | ||
'@leafygreen-ui/banner': patch | ||
'@leafygreen-ui/box': patch | ||
'@leafygreen-ui/button': patch | ||
'@leafygreen-ui/callout': patch | ||
'@leafygreen-ui/card': patch | ||
'@leafygreen-ui/checkbox': patch | ||
'@leafygreen-ui/chip': patch | ||
'@leafygreen-ui/code': patch | ||
'@leafygreen-ui/combobox': patch | ||
'@leafygreen-ui/confirmation-modal': patch | ||
'@leafygreen-ui/context-drawer': patch | ||
'@leafygreen-ui/copyable': patch | ||
'@leafygreen-ui/date-picker': patch | ||
'@leafygreen-ui/date-utils': patch | ||
'@leafygreen-ui/descendants': patch | ||
'@leafygreen-ui/drawer': patch | ||
'@leafygreen-ui/emotion': patch | ||
'@leafygreen-ui/empty-state': patch | ||
'@leafygreen-ui/expandable-card': patch | ||
'@leafygreen-ui/form-field': patch | ||
'@leafygreen-ui/form-footer': patch | ||
'@leafygreen-ui/gallery-indicator': patch | ||
'@leafygreen-ui/guide-cue': patch | ||
'@leafygreen-ui/hooks': patch | ||
'@leafygreen-ui/icon': patch | ||
'@leafygreen-ui/icon-button': patch | ||
'@leafygreen-ui/info-sprinkle': patch | ||
'@leafygreen-ui/input-option': patch | ||
'@leafygreen-ui/inline-definition': patch | ||
'@leafygreen-ui/leafygreen-provider': patch | ||
'@leafygreen-ui/lib': patch | ||
'@leafygreen-ui/loading-indicator': patch | ||
'@leafygreen-ui/marketing-modal': patch | ||
'@leafygreen-ui/menu': patch | ||
'@leafygreen-ui/modal': patch | ||
'@leafygreen-ui/number-input': patch | ||
'@leafygreen-ui/ordered-list': patch | ||
'@leafygreen-ui/palette': patch | ||
'@leafygreen-ui/pagination': patch | ||
'@leafygreen-ui/password-input': patch | ||
'@leafygreen-ui/popover': patch | ||
'@leafygreen-ui/portal': patch | ||
'@leafygreen-ui/preview-card': patch | ||
'@leafygreen-ui/radio-box-group': patch | ||
'@leafygreen-ui/radio-group': patch | ||
'@leafygreen-ui/ripple': patch | ||
'@leafygreen-ui/search-input': patch | ||
'@leafygreen-ui/section-nav': patch | ||
'@leafygreen-ui/select': patch | ||
'@leafygreen-ui/segmented-control': patch | ||
'@leafygreen-ui/side-nav': patch | ||
'@leafygreen-ui/skeleton-loader': patch | ||
'@leafygreen-ui/split-button': patch | ||
'@leafygreen-ui/stepper': patch | ||
'@leafygreen-ui/table': patch | ||
'@leafygreen-ui/tabs': patch | ||
'@leafygreen-ui/testing-lib': patch | ||
'@leafygreen-ui/text-area': patch | ||
'@leafygreen-ui/text-input': patch | ||
'@leafygreen-ui/tokens': patch | ||
'@leafygreen-ui/toast': patch | ||
'@leafygreen-ui/toggle': patch | ||
'@leafygreen-ui/toolbar': patch | ||
'@leafygreen-ui/tooltip': patch | ||
'@leafygreen-ui/typography': patch | ||
'@lg-charts/chart-card': patch | ||
'@lg-charts/colors': patch | ||
'@lg-charts/core': patch | ||
'@lg-charts/drag-provider': patch | ||
'@lg-charts/legend': patch | ||
'@lg-charts/series-provider': patch | ||
'@lg-chat/avatar': patch | ||
'@lg-chat/chat-disclaimer': patch | ||
'@lg-chat/chat-window': patch | ||
'@lg-chat/fixed-chat-window': patch | ||
'@lg-chat/input-bar': patch | ||
'@lg-chat/leafygreen-chat-provider': patch | ||
'@lg-chat/lg-markdown': patch | ||
'@lg-chat/message': patch | ||
'@lg-chat/message-actions': patch | ||
'@lg-chat/message-feedback': patch | ||
'@lg-chat/message-prompts': patch | ||
'@lg-chat/message-rating': patch | ||
'@lg-chat/message-feed': patch | ||
'@lg-chat/rich-links': patch | ||
'@lg-chat/suggestions': patch | ||
'@lg-chat/title-bar': patch | ||
'@lg-tools/build': patch | ||
'@lg-tools/cli': patch | ||
'@lg-tools/codemods': patch | ||
'@lg-tools/link': patch | ||
'@lg-tools/lint': patch | ||
'@lg-tools/meta': patch | ||
'@lg-tools/prompt-kit': patch | ||
'@lg-tools/slackbot': patch | ||
'@lg-tools/storybook-utils': patch | ||
'@lg-tools/test-harnesses': patch | ||
'@lg-tools/update': patch | ||
--- | ||
|
||
Removes `*.spec.ts` files from tsconfig `exclude` pattern, ensuring that tests are type-checked at build time. | ||
Also adds missing TS "references" for packages that are imported into test files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@leafygreen-ui/confirmation-modal': patch | ||
--- | ||
|
||
Sets `renderSearchInput` test util return type params to required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
"src/**/*" | ||
], | ||
"exclude": [ | ||
"**/*.spec.*", | ||
"**/*.stories.*" | ||
], | ||
"references": [ | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👍 Will fix this once it's merged - https://jira.mongodb.org/browse/LG-5478