Skip to content

Commit

Permalink
fix(cli): correct root directory in test
Browse files Browse the repository at this point in the history
Fixes error on windows tests.  Removes instances of sandbox folder
erroniously placed in packages folder.

See loopbackio#4425

Signed-off-by: Douglas McConnachie <[email protected]>
  • Loading branch information
dougal83 committed Feb 14, 2020
1 parent 8e726dd commit 8e5fb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/test/integration/generators/app.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ process.env.CI && !process.env.DEBUG

/** For testing if the generator handles default values properly */
describe('app-generator with default values', () => {
const rootDir = path.join(__dirname, '../../../..');
const rootDir = path.join(__dirname, '../../../../../');
const defaultValProjPath = path.join(rootDir, 'sandbox/default-value-app');
const sandbox = path.join(rootDir, 'sandbox');
const pathToDefValApp = path.join(defaultValProjPath, 'default-value-app');
Expand Down Expand Up @@ -256,7 +256,7 @@ describe('app-generator with default values', () => {
* Use differnt paths to test out the support of `~` when the test runs outside of home dir.
*/
describe('app-generator with tilde project path', () => {
const rootDir = path.join(__dirname, '../../../..');
const rootDir = path.join(__dirname, '../../../../../');
// tildify the path:
let sandbox = path.join(rootDir, 'sandbox/tilde-path-app');
let pathWithTilde = tildify(sandbox);
Expand Down

0 comments on commit 8e5fb20

Please sign in to comment.