Skip to content

Commit 81b27dd

Browse files
committed
tests: add a symlink to changes
1 parent dca3b11 commit 81b27dd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/test/integration/git.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ const makeFileChanges = async (repoDirectory: string) => {
113113
path.join(repoDirectory, "coverage", "foo", "bar"),
114114
"This file should be ignored",
115115
);
116+
// Add a symlink in ignored directory
117+
await fs.promises.symlink(
118+
path.join(repoDirectory, "nested"),
119+
path.join(repoDirectory, "node_modules", "nested")
120+
);
116121
};
117122

118123
const makeFileChangeAssertions = async (branch: string) => {

0 commit comments

Comments
 (0)