question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support dynamically detecting changes when .gitignore is updated

See original GitHub issue

Consider a repo with the following:

.gitignore:

*.js

foo.test.ts

it(`throws`, () => throw new Error('bewm'));

(and TypeScript configured with inline source maps)

If you run tsc --watch and jest --watch, it will not pick up any changes. Jest is running tests via foo.test.js, and because .js files are gitignored, any changes to those files are also ignored


Suggestion: for files with source maps, also track their related source and check for changes in them, too

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

1reaction
thymikeecommented, Sep 3, 2018

Nah, just re-crawling after gitignore is changed should be sufficient. Jest already has a list of files to resolve, so no need to complicate it even further. Also I don’t see source maps related to this issue.

0reactions
github-actions[bot]commented, Apr 27, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic .gitignore configs to follow the same pattern over and ...
Composing a simple .gitignore file by hand seems simple: abc !abc/abc.properties !abc/abc.txt def !def/def.properties !def/def.txt # ...etc.
Read more >
I have .idea in gitignore, but it is still in local changes
idea/ files as changed in the Local Changes. I was able to fix this by closing all instances of the IDE, then running...
Read more >
Is there a suggested .gitignore to use with UIPath Studio? - Help
I'm working on implementing GIT integeration with Team Foundation Server and noticed that it seems a number of files are constantly changing ......
Read more >
GitHub: Tell Git to ignore files - SAPIEN Information Center
This post demonstrates how to use 'exclude' and . gitignore files to exclude files from your GitHub repos, including the backup files that ......
Read more >
Why GitLab Ultimate?
GitLab SAST allows users to change the vulnerability detection defaults to ... Help teams using both Jira and GitLab better collaborate and stay...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found