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.

Don't mark entry files as unimported

See original GitHub issue

Not sure if I just misunderstood something about the configuration, but the way that I understand it, I have to mark tests as entry files, or otherwise test helpers and test dependencies will not be recognized as being imported. But it seems I need to still mark the test files as ignored as well. At the same time, e. g. the pages in my next app are not ignored, but they do not show up in the unimported output. Here’s my config for reference:

{
  "ignorePatterns": [
    "**/node_modules/**"
  ],
  "ignoreUnimported": [],
  "ignoreUnused": [
    "next",
    "react",
    "react-dom"
  ],
  "ignoreUnresolved": [],
  "entry": ["pages/**/*", "src/**/*.stories.tsx", "src/**/*.test.ts", "scripts/*.ts"]
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dbartholomaecommented, Feb 3, 2022
0reactions
smeijercommented, May 29, 2022

Windows issues have been fixed in 1.20.1, so I’m gonna assume that this one is also no longer the case. Please reopen if I’m wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

smeijer/unimported: Find and fix dangling files and ... - GitHub
Find and fix dangling files and unused dependencies in your JavaScript ... code by following the require/import statements starting from your entry file....
Read more >
COUNTRY OF ORIGIN MARKING - GovInfo
Customs supervision prior to liquidation of the entry, as provided in 19 U.S.C. 1304(f). The 10 percent additional duty is assessable for failure...
Read more >
How to unimport a python module which is already imported?
There's no way to unload something once you've imported it. Python keeps a copy of the module in a cache, so the next...
Read more >
Find Unused Source Files in JavaScript/TypeScript Projects
Unimported follows your import statements starting from one or more entry files. For nextjs projects, the entry files default to pages/** . For...
Read more >
Import or link to data in a text file - Microsoft Support
Open the Access database in which the imported data will be stored. If you don't want to store the data in any of...
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