Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Jan 17, 2023
1 parent 9b9fe40 commit b15f91b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test-cases/build-errors/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tap.test('build-errors', async (t) => {
const cwd = __dirname
const siteUp = new Siteup(src, dest, cwd)

await rm(dest, { recursive: true })
await rm(dest, { recursive: true, force: true })

try {
const results = await siteUp.build()
Expand Down
2 changes: 1 addition & 1 deletion test-cases/conflict-pages/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tap.test('conflict-pages', async (t) => {
const cwd = __dirname
const siteUp = new Siteup(src, dest, cwd)

await rm(dest, { recursive: true })
await rm(dest, { recursive: true, force: true })

t.rejects(siteUp.build(), /Build finished but there were errors/, 'Throws when conflicting page is found on build.')
})
2 changes: 1 addition & 1 deletion test-cases/default-layout/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tap.test('default-layout', async (t) => {
const cwd = __dirname
const siteUp = new Siteup(src, dest, cwd)

await rm(dest, { recursive: true })
await rm(dest, { recursive: true, force: true })

await siteUp.build()

Expand Down
2 changes: 1 addition & 1 deletion test-cases/general-features/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tap.test('general-features', async (t) => {
const cwd = __dirname
const siteUp = new Siteup(src, dest, cwd)

await rm(dest, { recursive: true })
await rm(dest, { recursive: true, force: true })

const results = await siteUp.build()
t.ok(results, 'Siteup built site and returned build results')
Expand Down
2 changes: 1 addition & 1 deletion test-cases/nested-dest/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tap.test('nested-dest', async (t) => {
const cwd = __dirname
const siteUp = new Siteup(src, dest, cwd)

await rm(dest, { recursive: true })
await rm(dest, { recursive: true, force: true })

await siteUp.build()

Expand Down
2 changes: 1 addition & 1 deletion test-cases/page-build-errors/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tap.test('build-errors', async (t) => {
const cwd = __dirname
const siteUp = new Siteup(src, dest, cwd)

await rm(dest, { recursive: true })
await rm(dest, { recursive: true, force: true })

try {
const results = await siteUp.build()
Expand Down

0 comments on commit b15f91b

Please sign in to comment.