Skip to content

Commit

Permalink
test: exclude node_modules for created project (#10468)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellyzh authored Dec 1, 2023
1 parent 0cd6875 commit e459ec2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/tests/src/utils/vscodeOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,9 @@ export async function createNewProject(
);
console.log("copy path: ", projectPath, " to: ", projectCopyPath);
await fs.mkdir(projectCopyPath);
await fs.copy(projectPath, projectCopyPath);
const filterFunc = (src: string) =>
src.indexOf("node_modules") > -1 ? false : true;
await fs.copy(projectPath, projectCopyPath, { filter: filterFunc });
console.log("open project path");
await openExistingProject(projectCopyPath);
}
Expand Down

0 comments on commit e459ec2

Please sign in to comment.