From 60ba398bb9e1afcf5c4595758777ca804ddec6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Thu, 19 Mar 2020 01:11:03 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deployment.yaml | 2 +- test/index.test.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index ffd9c26..9086431 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -40,7 +40,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm start -- generate -c ${{env.working-directory}}/nuxt.config.cjs + - run: npm start -- generate -c $(pwd)/nuxt.config.cjs env: CI: true - run: cp CNAME dist/CNAME diff --git a/test/index.test.js b/test/index.test.js index e07af24..509d67c 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -10,10 +10,11 @@ const { JSDOM } = jsdom; // Init Nuxt.js and create a server listening on localhost:4000 test.before(async ({ context }) => { const rootDir = process.cwd(); + const { default: fileConfig } = await import(resolve(rootDir, 'nuxt.config.cjs')); const config = { - ...await import(resolve(rootDir, 'nuxt.config.cjs')), - mode: 'spa' + ...fileConfig, + mode: 'universal' }; context.server = new Nuxt(config);