-
Notifications
You must be signed in to change notification settings - Fork 49
Madhur/reduce common W-19442343 #616
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
23 commits
Select commit
Hold shift + click to select a range
e1c71ec
fix: updating common to simplify
madhur310 4f2dc23
fix: delete unused files
madhur310 4a5cef8
fix: unused index files
madhur310 e1743d8
fix: fixing cursor mess up
madhur310 e80f5f3
fix: update comment
madhur310 1af8db3
fix: removing merge markers
madhur310 bb92cdc
fix: update paths logic for windows
madhur310 6f124c9
fix: remove methods not needed in LLS
madhur310 5b90060
fix: feedback and remove fs-extra
madhur310 cd6ba35
fix: remove shelljs and move context impl
madhur310 b9d8a12
fix: paths
madhur310 b426417
fix: try init server
madhur310 961e77b
fix: try return mock
madhur310 8146333
chore: add debug logs for failing ut
madhur310 2b8f658
chore: add more logs
madhur310 208a81d
chore: add more logs
madhur310 041d03f
chore: more logs
madhur310 57c2447
chore: try path.posix
madhur310 a7efb01
fix: undo debug logs
madhur310 0a2975d
fix: remove dupe and promisify
madhur310 2cd41ef
fix: pr feedback
madhur310 934fc7a
fix: delete fs-utils
madhur310 eb22d54
fix: remove unused import
madhur310 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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 |
|---|---|---|
| @@ -1,16 +1,12 @@ | ||
| module.exports = { | ||
| displayName: 'unit', | ||
| transform: { | ||
| ".ts": "ts-jest" | ||
| }, | ||
| testRegex: 'src/.*(\\.|/)(test|spec)\\.(ts|js)$', | ||
| moduleFileExtensions: [ | ||
| "ts", | ||
| "js", | ||
| "json" | ||
| ], | ||
| setupFilesAfterEnv: ["jest-extended"], | ||
| testEnvironmentOptions: { | ||
| url: 'http://localhost/', | ||
| } | ||
| displayName: 'unit', | ||
| transform: { | ||
| '.ts': 'ts-jest', | ||
| }, | ||
| testRegex: 'src/.*(\\.|/)(test|spec)\\.(ts|js)$', | ||
| moduleFileExtensions: ['ts', 'js', 'json'], | ||
| setupFilesAfterEnv: ['jest-extended', '<rootDir>/jest.setup.js'], | ||
| testEnvironmentOptions: { | ||
| url: 'http://localhost/', | ||
| }, | ||
| }; |
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,12 @@ | ||
| // Suppress specific console warnings during tests | ||
| const originalWarn = console.warn; | ||
madhur310 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| console.warn = (...args) => { | ||
| // Suppress the eslint-tool warning from any package | ||
| // This log clutters the output and is not useful, hence we suppress it | ||
| if (args[0] && args[0].includes('core eslint-tool not installed')) { | ||
| return; | ||
| } | ||
| // Allow other warnings to pass through | ||
| originalWarn.apply(console, args); | ||
| }; | ||
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
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
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.
love this rule
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.
+1 I like the
const =way much better, easier to read imo and find unused stuff..