test: invert logic

This commit is contained in:
Princesseuh 2023-10-10 19:34:18 +02:00
parent 50f00f480f
commit 75d947de7f
No known key found for this signature in database
GPG key ID: 105BBD6D57F2B0C0

View file

@ -71,7 +71,7 @@ export async function loadTSConfig(
['jsconfig.json', 'tsconfig.json'].map((configName) =>
// `tsconfck` expects its first argument to be a file path, not a directory path, so we'll fake one
find(join(safeCwd, './dummy.txt'), {
root: findUp ? root : undefined,
root: findUp ? undefined : root,
configName: configName,
})
)