@@ -58,9 +58,10 @@ const outDir = "_book";
5858const bookProjDir = docs ( "project/book" ) ;
5959const bookOutDir = join ( bookProjDir , outDir ) ;
6060
61+ const bookPdfDir = join ( bookOutDir , "book-pdf" ) ;
6162const verifyPdfBook : Verify [ ] = [
62- fileExists ( join ( bookOutDir , "book.pdf" ) ) ,
63- directoryEmptyButFor ( bookOutDir , [ "book.pdf" ] ) ,
63+ fileExists ( join ( bookPdfDir , "book.pdf" ) ) ,
64+ directoryEmptyButFor ( bookPdfDir , [ "book.pdf" ] ) ,
6465] ;
6566testQuartoCmd (
6667 "render" ,
@@ -75,9 +76,10 @@ testQuartoCmd(
7576 } ,
7677) ;
7778
79+ const bookDocxDir = join ( bookOutDir , "book-docx" ) ;
7880const verifyDocxBook : Verify [ ] = [
79- fileExists ( join ( bookOutDir , "book.docx" ) ) ,
80- directoryEmptyButFor ( bookOutDir , [ "book.docx" ] ) ,
81+ fileExists ( join ( bookDocxDir , "book.docx" ) ) ,
82+ directoryEmptyButFor ( bookDocxDir , [ "book.docx" ] ) ,
8183] ;
8284testQuartoCmd (
8385 "render" ,
@@ -92,9 +94,10 @@ testQuartoCmd(
9294 } ,
9395) ;
9496
97+ const bookEpubDir = join ( bookOutDir , "book-epub" ) ;
9598const verifyEpubBook : Verify [ ] = [
96- fileExists ( join ( bookOutDir , "book.epub" ) ) ,
97- directoryEmptyButFor ( bookOutDir , [ "book.epub" ] ) ,
99+ fileExists ( join ( bookEpubDir , "book.epub" ) ) ,
100+ directoryEmptyButFor ( bookEpubDir , [ "book.epub" ] ) ,
98101] ;
99102testQuartoCmd (
100103 "render" ,
0 commit comments