towerops/e2e/package.json
Graham McIntire 99507eeaaf
fix: update e2e tests to use otplib v13 API and load .env
- Change tsconfig to use ESNext modules
- Add type: module to package.json
- Update auth.setup.ts to use generateSync instead of authenticator.generate
- Install and configure dotenv to load environment variables
- Add dotenv.config() to playwright.config.ts
2026-03-06 15:53:10 -06:00

22 lines
688 B
JSON

{
"name": "towerops-e2e",
"version": "1.0.0",
"type": "module",
"description": "End-to-end tests for Towerops",
"scripts": {
"test": "playwright test",
"test:local": "BASE_URL=http://localhost:4000 playwright test",
"test:staging": "BASE_URL=https://staging.towerops.net playwright test",
"test:ui": "playwright test --ui",
"test:headed": "playwright test --headed",
"test:debug": "playwright test --debug",
"codegen": "playwright codegen http://localhost:4000",
"report": "playwright show-report"
},
"devDependencies": {
"@playwright/test": "^1.48.0",
"@types/node": "^22.0.0",
"dotenv": "^17.3.1",
"otplib": "^13.0.0"
}
}