Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

chore: fix caching of ignored files#111

Merged
nzakas merged 1 commit intohumanwhocodes:mainfrom
mdjermanovic:fixed-ignored-caching
Oct 19, 2023
Merged

chore: fix caching of ignored files#111
nzakas merged 1 commit intohumanwhocodes:mainfrom
mdjermanovic:fixed-ignored-caching

Conversation

@mdjermanovic
Copy link
Contributor

Fixes getConfig() caching for ignored files.

Configs for ignored files are stored as undefined in the cache, so if (finalConfig) was treating them as cache misses.

@nzakas
Copy link
Contributor

nzakas commented Oct 16, 2023

Can you add a test for this?

Copy link
Contributor

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I see that we basically can't create a test because the return value is the same, it's just the amount of time it takes to get there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants