diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index 5b4d5eedd513f..224cb1824ad0e 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -51,7 +51,8 @@ async function createNextInstall( !item.includes('node_modules') && !item.includes('.DS_Store') && // Exclude Rust compilation files - !/next[\\/]build[\\/]swc[\\/]target/.test(item) + !/next[\\/]build[\\/]swc[\\/]target/.test(item) && + !/next-swc[\\/]target/.test(item) ) }, })