Skip to content

Commit

Permalink
add linting and remove build artifacts in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed May 19, 2020
1 parent d372be9 commit adf4f9f
Show file tree
Hide file tree
Showing 3 changed files with 447 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const fs = require('fs')
const puppeteer = require('puppeteer')
const handler = require('serve-handler')
const http = require('http')
const rmfr = require('rmfr')

jest.setTimeout(30000)

Expand Down Expand Up @@ -44,6 +45,11 @@ test('it works', () => {
})
})

afterAll(async () => {
await rmfr(path.join(__dirname, 'fixtures/basic/out'))
await rmfr(path.join(__dirname, 'fixtures/basic/.next'))
})

function buildFixture(fixture) {
spawn.sync('next', ['build'], {
stdio: 'inherit',
Expand Down
Loading

0 comments on commit adf4f9f

Please sign in to comment.