File size: 653 Bytes
b968036 | 1 2 3 4 5 6 7 8 9 10 11 12 | import { defineConfig } from '@playwright/test';
import base from './playwright.config.js';
// The page talks to a fake Apps Script URL; the spec answers it with apps-script/Code.gs.
process.env.EXAM_APPS_SCRIPT_URL = 'https://script.google.com/macros/s/test-deployment/exec';
export default defineConfig({ ...base,
testMatch: 'exam-apps-script.spec.js',
use: { ...base.use, baseURL: 'http://127.0.0.1:5188' },
webServer: { command: 'npm run dev -- --host 127.0.0.1 --port 5188 --strictPort', url: 'http://127.0.0.1:5188', reuseExistingServer: false,
env: { VITE_EXAM_ENDPOINT: process.env.EXAM_APPS_SCRIPT_URL, EXAM_ACCESS_CODE: '' } },
});
|