mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Test that publish can be restored from cache
This commit is contained in:
parent
a9ca864b54
commit
04d59d8a49
2 changed files with 69 additions and 21 deletions
|
|
@ -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 }`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue