@@ -22,7 +22,6 @@ const { setupMocha: setupPolly } = require('@pollyjs/core');
2222const { HelixConfig, Logger } = require ( '@adobe/helix-shared' ) ;
2323const { initGit, createTestRoot } = require ( './utils.js' ) ;
2424const GitUtils = require ( '../src/git-utils' ) ;
25- const BuildCommand = require ( '../src/build.cmd.js' ) ;
2625const DeployCommand = require ( '../src/deploy.cmd.js' ) ;
2726
2827const CI_TOKEN = 'nope' ;
@@ -347,18 +346,6 @@ describe('hlx deploy (Integration)', () => {
347346 initGit ( testRoot , 'git@github.com:adobe/project-helix.io.git' ) ;
348347 const logger = Logger . getTestLogger ( ) ;
349348
350- await new BuildCommand ( logger )
351- . withDirectory ( testRoot )
352- . withFiles ( [
353- path . resolve ( testRoot , 'src/html.htl' ) ,
354- path . resolve ( testRoot , 'src/html.pre.js' ) ,
355- path . resolve ( testRoot , 'src/helper.js' ) ,
356- path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
357- path . resolve ( testRoot , 'src/third_helper.js' ) ,
358- ] )
359- . withTargetDir ( buildDir )
360- . run ( ) ;
361-
362349 const cmd = await new DeployCommand ( logger )
363350 . withDirectory ( testRoot )
364351 . withWskHost ( 'adobeioruntime.net' )
@@ -368,6 +355,13 @@ describe('hlx deploy (Integration)', () => {
368355 . withEnableDirty ( false )
369356 . withDryRun ( true )
370357 . withTarget ( buildDir )
358+ . withFiles ( [
359+ path . resolve ( testRoot , 'src/html.htl' ) ,
360+ path . resolve ( testRoot , 'src/html.pre.js' ) ,
361+ path . resolve ( testRoot , 'src/helper.js' ) ,
362+ path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
363+ path . resolve ( testRoot , 'src/third_helper.js' ) ,
364+ ] )
371365 . withMinify ( false )
372366 . run ( ) ;
373367
@@ -386,19 +380,6 @@ describe('hlx deploy (Integration)', () => {
386380 initGit ( testRoot , 'git@github.com:adobe/project-helix.io.git' ) ;
387381 const logger = Logger . getTestLogger ( ) ;
388382
389- await new BuildCommand ( logger )
390- . withDirectory ( testRoot )
391- . withFiles ( [
392- path . resolve ( testRoot , 'src/html.htl' ) ,
393- path . resolve ( testRoot , 'src/html.pre.js' ) ,
394- path . resolve ( testRoot , 'src/helper.js' ) ,
395- path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
396- path . resolve ( testRoot , 'src/third_helper.js' ) ,
397- path . resolve ( testRoot , 'cgi-bin/hello.js' ) ,
398- ] )
399- . withTargetDir ( buildDir )
400- . run ( ) ;
401-
402383 const cmd = await new DeployCommand ( logger )
403384 . withDirectory ( testRoot )
404385 . withWskHost ( 'adobeioruntime.net' )
@@ -409,6 +390,14 @@ describe('hlx deploy (Integration)', () => {
409390 . withDryRun ( true )
410391 . withMinify ( false )
411392 . withTarget ( buildDir )
393+ . withFiles ( [
394+ path . resolve ( testRoot , 'src/html.htl' ) ,
395+ path . resolve ( testRoot , 'src/html.pre.js' ) ,
396+ path . resolve ( testRoot , 'src/helper.js' ) ,
397+ path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
398+ path . resolve ( testRoot , 'src/third_helper.js' ) ,
399+ path . resolve ( testRoot , 'cgi-bin/hello.js' ) ,
400+ ] )
412401 . run ( ) ;
413402
414403 const ref = await GitUtils . getCurrentRevision ( testRoot ) ;
@@ -429,18 +418,6 @@ describe('hlx deploy (Integration)', () => {
429418 initGit ( testRoot , 'git@github.com:adobe/project-helix.io.git' ) ;
430419 const logger = Logger . getTestLogger ( ) ;
431420
432- await new BuildCommand ( logger )
433- . withDirectory ( testRoot )
434- . withFiles ( [
435- path . resolve ( testRoot , 'src/html.htl' ) ,
436- path . resolve ( testRoot , 'src/html.pre.js' ) ,
437- path . resolve ( testRoot , 'src/helper.js' ) ,
438- path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
439- path . resolve ( testRoot , 'src/third_helper.js' ) ,
440- ] )
441- . withTargetDir ( buildDir )
442- . run ( ) ;
443-
444421 const ref = await GitUtils . getCurrentRevision ( testRoot ) ;
445422
446423 this . polly . server . any ( ) . on ( 'beforeResponse' , ( req , res ) => {
@@ -503,6 +480,13 @@ describe('hlx deploy (Integration)', () => {
503480 . withEnableDirty ( false )
504481 . withDryRun ( false )
505482 . withTarget ( buildDir )
483+ . withFiles ( [
484+ path . resolve ( testRoot , 'src/html.htl' ) ,
485+ path . resolve ( testRoot , 'src/html.pre.js' ) ,
486+ path . resolve ( testRoot , 'src/helper.js' ) ,
487+ path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
488+ path . resolve ( testRoot , 'src/third_helper.js' ) ,
489+ ] )
506490 . withMinify ( false )
507491 . withLogglyAuth ( 'loggly-auth' )
508492 . withLogglyHost ( 'loggly-host' )
@@ -562,6 +546,13 @@ describe('hlx deploy (Integration)', () => {
562546 . withDryRun ( false )
563547 . withMinify ( false )
564548 . withTarget ( buildDir )
549+ . withFiles ( [
550+ path . resolve ( testRoot , 'src/html.htl' ) ,
551+ path . resolve ( testRoot , 'src/html.pre.js' ) ,
552+ path . resolve ( testRoot , 'src/helper.js' ) ,
553+ path . resolve ( testRoot , 'src/utils/another_helper.js' ) ,
554+ path . resolve ( testRoot , 'src/third_helper.js' ) ,
555+ ] )
565556 . run ( ) ;
566557 assert . fail ( 'Expected deploy to fail.' ) ;
567558 } catch ( e ) {
0 commit comments