Skip to content

Commit

Permalink
test: Make sure to clean untracked files when preparing for tests
Browse files Browse the repository at this point in the history
Otherwise the artifacts produced by the tests can clobber.
  • Loading branch information
dividedmind committed Apr 21, 2024
1 parent 883589a commit be532f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/tests/unit/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function executeWorkspaceOSCommand(cmd: string, workingDirectory: string):
}

export async function cleanProject(workingDirectory: string) {
const commands = [`git checkout HEAD .`, `git clean -f -d .`];
const commands = [`git checkout HEAD .`, `git clean -fdx .`];
for (const command of commands) {
try {
await executeWorkspaceOSCommand(command, workingDirectory);
Expand Down

0 comments on commit be532f5

Please sign in to comment.