Skip to content

Commit

Permalink
Add test that shows neste files aren't deleted with TARGET_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 committed Nov 17, 2022
1 parent 55e55bb commit f42367b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ exports[`Deploy to a branch on a custom dir that exists 1`] = `
tree:91548ed23fe65d56dfcbb58357a11c32c9b0b95d
author:s0 <[email protected]>
msg:initial
tree:d019febe4c92496949f9d9eb3eff95d8435aff76
tree:6ceb2d248e9b9c62291e9d1a5c4afeca8a49b2c8
author:Test User <[email protected]>"
`;
3 changes: 2 additions & 1 deletion action/test/specs/ssh-target-dir-exists.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ it('Deploy to a branch on a custom dir that exists', async () => {
await mkdirP(path.join(folders.repoCloneDir, 'folder'));
await fs.writeFile(path.join(folders.repoCloneDir, 'folder', 'a'), 'foobar1');
await fs.writeFile(path.join(folders.repoCloneDir, 'folder', 'b'), 'foobar2');
await mkdirP(path.join(folders.repoCloneDir, 'custom'));
await mkdirP(path.join(folders.repoCloneDir, 'custom', 'b'));
await fs.writeFile(path.join(folders.repoCloneDir, 'custom', 'a'), 'foobar1');
await fs.writeFile(path.join(folders.repoCloneDir, 'custom', 'b', 'c'), 'foobar1');
await util.wrappedExec(`git add -A .`, { cwd: folders.repoCloneDir });
await util.wrappedExec(`git config user.name "Test User"`, {
cwd: folders.repoCloneDir,
Expand Down

0 comments on commit f42367b

Please sign in to comment.