Skip to content

Commit

Permalink
fix: cleanup tilde-path-app post test
Browse files Browse the repository at this point in the history
ensure test app is remove afterward

follows: loopbackio#4652
Signed-off-by: Douglas McConnachie <dougal83+git@gmail.com>
  • Loading branch information
dougal83 committed Feb 15, 2020
1 parent 223ad7a commit 9aba52e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/test/integration/generators/app.integration.js
Expand Up @@ -295,7 +295,12 @@ describe('app-generator with tilde project path', () => {
// eslint-disable-next-line no-invalid-this
this.timeout(30 * 1000);

process.chdir(sandbox);
// If the test runs outside $home directory
if (process.env.CI && !process.env.DEBUG) {
process.chdir(sandbox);
} else {
process.chdir(rootDir);
}
build.clean(['node', 'run-clean', sandbox]);
process.chdir(cwd);
});
Expand Down

0 comments on commit 9aba52e

Please sign in to comment.