66'use strict' ;
77
88const fs = require ( 'fs' ) ;
9- const os = require ( 'os' ) ;
9+ // const os = require('os');
1010const path = require ( 'path' ) ;
11- const tildify = require ( 'tildify' ) ;
11+ // const tildify = require('tildify');
1212const assert = require ( 'yeoman-assert' ) ;
1313const helpers = require ( 'yeoman-test' ) ;
1414const 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+ /*
323324describe('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