Commit 7a3b9685 authored by Tim Neutkens's avatar Tim Neutkens

Use new nextBuild function signature

parent 72a322fc
...@@ -19,7 +19,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 ...@@ -19,7 +19,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
describe('Production Usage', () => { describe('Production Usage', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild({dir: appDir})
app = nextServer({ app = nextServer({
dir: join(__dirname, '../'), dir: join(__dirname, '../'),
dev: false, dev: false,
......
...@@ -25,7 +25,7 @@ const devContext = {} ...@@ -25,7 +25,7 @@ const devContext = {}
describe('Static Export', () => { describe('Static Export', () => {
beforeAll(async () => { beforeAll(async () => {
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
await nextBuild(appDir) await nextBuild({dir: appDir})
await nextExport(appDir, { outdir }) await nextExport(appDir, { outdir })
context.server = await startStaticServer(join(appDir, 'out')) context.server = await startStaticServer(join(appDir, 'out'))
......
...@@ -17,7 +17,7 @@ let server ...@@ -17,7 +17,7 @@ let server
describe('Production Config Usage', () => { describe('Production Config Usage', () => {
beforeAll(async () => { beforeAll(async () => {
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
await nextBuild(appDir) await nextBuild({dir: appDir})
const app = nextServer({ const app = nextServer({
dir: join(__dirname, '../'), dir: join(__dirname, '../'),
dev: false, dev: false,
......
...@@ -28,7 +28,7 @@ const context = {} ...@@ -28,7 +28,7 @@ const context = {}
describe('Production Usage', () => { describe('Production Usage', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild({dir: appDir})
app = nextServer({ app = nextServer({
dir: join(__dirname, '../'), dir: join(__dirname, '../'),
dev: false, dev: false,
......
...@@ -17,7 +17,7 @@ describe('withRouter', () => { ...@@ -17,7 +17,7 @@ describe('withRouter', () => {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5 jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild({dir: appDir})
app = nextServer({ app = nextServer({
dir: join(__dirname, '../'), dir: join(__dirname, '../'),
dev: false, dev: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment