Skip to content

Commit 44bf8b3

Browse files
committed
test: disable test that generates the project in the user's folder
Signed-off-by: Francisco Buceta <frbuceta@gmail.com>
1 parent 38665f9 commit 44bf8b3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/cli/test/integration/generators/app.integration.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
'use strict';
77

88
const fs = require('fs');
9-
const os = require('os');
9+
// const os = require('os');
1010
const path = require('path');
11-
const tildify = require('tildify');
11+
// const tildify = require('tildify');
1212
const assert = require('yeoman-assert');
1313
const helpers = require('yeoman-test');
1414
const build = require('@loopback/build');
@@ -320,6 +320,7 @@ describe('app-generator with numbers in app name', () => {
320320
/** For testing the support of tilde path as the input of project path.
321321
* Use different paths to test out the support of `~` when the test runs outside of home dir.
322322
*/
323+
/*
323324
describe('app-generator with tilde project path', () => {
324325
const rootDir = path.join(__dirname, '../../../../../');
325326
// tildify the path:
@@ -329,9 +330,7 @@ describe('app-generator with tilde project path', () => {
329330
330331
// If the test runs outside $home directory
331332
const runsOutsideRoot =
332-
process.env.CI && !process.env.DEBUG && tildify(sandbox) === sandbox
333-
? true
334-
: false;
333+
process.env.CI && !process.env.DEBUG && tildify(sandbox) === sandbox;
335334
if (runsOutsideRoot) {
336335
sandbox = path.join(os.homedir(), '.lb4sandbox/tilde-path-app');
337336
pathWithTilde = '~/.lb4sandbox/tilde-path-app';
@@ -344,7 +343,7 @@ describe('app-generator with tilde project path', () => {
344343
345344
before(givenScaffoldedApp);
346345
347-
/** @this {Mocha.Context} */
346+
/!** @this {Mocha.Context} *!/
348347
async function givenScaffoldedApp() {
349348
// Increase the timeout to accommodate slow CI build machines
350349
this.timeout(30 * 1000);
@@ -365,7 +364,7 @@ describe('app-generator with tilde project path', () => {
365364
366365
after(cleanup);
367366
368-
/** @this {Mocha.Context} */
367+
/!** @this {Mocha.Context} *!/
369368
function cleanup() {
370369
// Increase the timeout to accommodate slow CI build machines
371370
this.timeout(30 * 1000);
@@ -380,3 +379,4 @@ describe('app-generator with tilde project path', () => {
380379
process.chdir(cwd);
381380
}
382381
});
382+
*/

0 commit comments

Comments
 (0)