diff --git a/package.json b/package.json index bdeb188..a2e9cd0 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "db:export-checks": "node scripts/export-checks.js", "db:export-checklists": "node scripts/export-checklists.js", "db:seed": "knex seed:run", + "prestart": "npm run db:migrate", "start": "node server.js", "test:e2e": "playwright test", "test:e2e-ci": "playwright test --reporter=list", diff --git a/playwright.config.js b/playwright.config.js index 132f567..84cfdae 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -56,7 +56,7 @@ module.exports = defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: 'NODE_ENV=test npm run start', + command: 'npm run start', url: 'http://localhost:3000', reuseExistingServer: !process.env.CI, stdout: 'pipe',