Repository navigation
Add discussion-links-on-repo-lists feature - #2981
Conversation
This comment has been minimized.
This comment has been minimized.
Which query?
Maybe |
This comment has been minimized.
This comment has been minimized.
Added |
Co-Authored-By: Federico Brigante <[email protected]>
Co-Authored-By: Federico Brigante <[email protected]>
Co-Authored-By: Federico Brigante <[email protected]>
discussion-links-on-repo-lists
discussion-links-on-repo-listsdiscussion-links-on-repo-lists feature
|
|
||
| export const isUserProfileRepoTab = (): boolean => isUserProfile() && | ||
| new URLSearchParams(location.search).get('tab') === 'repositories' && | ||
| location.pathname !== '/'; // Gotcha for 'https://github.com/?tab=repositories' |
There was a problem hiding this comment.
?
This is already covered by isUserProfile
There was a problem hiding this comment.
I know. My AVA is not working locally (And my computer is doing funny things) I Forgot to remove it
There was a problem hiding this comment.
What's not working? Make sure you test this on Node 12.15. You can use n or nvm to switch between versions
There was a problem hiding this comment.
'TS_NODE_FILES' is not recognized as an internal or external command
There was a problem hiding this comment.
Are you on Windows 10? It should work on bash
There was a problem hiding this comment.
Are you on Windows 10? It should work on bash
Yes. Let me try
There was a problem hiding this comment.
Or, more easily for now, first set the TS_NODE_FILES environment variable and then just run npx ava directly, not npm run test:js
There was a problem hiding this comment.
ava
× Timed out while running tests
× No tests found in test\search-query.ts
× No tests found in test\page-detect.ts
× No tests found in test\utils.ts
Give on trying to fix it
There was a problem hiding this comment.
This happens to me sometimes too, it's because ava tries to run all the tests in parallel and times out. Sometimes I just try again and it works.
Try ava --serial.
|
What is wrong? Why does the test not pass? |
fregante
left a comment
There was a problem hiding this comment.
I was wondering myself.
And, yeah, isUserProfile is DOM-based so that makes this test DOM-based as well.
Co-Authored-By: Federico Brigante <[email protected]>
Co-Authored-By: Federico Brigante <[email protected]>
I should have explained better here. #2981 (comment) |
Closes #1130
I followed #1130 (comment)
Test
https://github.com/sindresorhus?tab=repositories&type=source
https://github.com/search?q=user%3Asindresorhus+something