We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 878f2bf commit 1b9c8c9Copy full SHA for 1b9c8c9
packages/knip/src/plugins/vitest/index.ts
@@ -89,7 +89,7 @@ export const resolveConfig: ResolveConfig<ViteConfigOrFn | VitestWorkspaceConfig
89
const addAliases = (aliasOptions: AliasOptions) => {
90
for (const [alias, value] of Object.entries(aliasOptions)) {
91
if (!value) continue;
92
- const prefixes = [value].flat().map(prefix => {
+ const prefixes = [value].flat().filter((value) => typeof value === 'string').map(prefix => {
93
if (toPosix(prefix).startsWith(options.cwd)) return prefix;
94
return join(options.cwd, prefix);
95
});
0 commit comments