Test that publish can be restored from cache

This commit is contained in:
Sam Carlton 2021-06-26 15:32:20 -05:00
parent a9ca864b54
commit 04d59d8a49
2 changed files with 69 additions and 21 deletions

View file

@ -101,20 +101,17 @@ test.serial('Can restore publish folder from cache', async (t) => {
// would during a build
await cache.restoreCachedNuxtFiles()
// await cache.emptyPublishDirectory()
// t.log('No prexisting cache folder found')
// // If there's no files there already
// // then we can write to the directory with
// await cache.cachePublishFolder()
// Sync remain cached files into publish folder
// so Eleventy only has to build updated endpoints
await cache.syncInCachedPublishFolder()
// List missing endpoints
// so we can compare
const missingEndpoints = await cache.findMissingEndpoints()
// so we can compare for this test
const sitemapEndpoints = await cache.getPublishSitemapEndpoints()
const missingEndpoints = await cache.findMissingEndpoints({
endpoints: sitemapEndpoints
})
// t.log(`Cached publish folder at ${ testingCachePath }`)