Files
supabase/tests/studio-tests/package.json
T
Joshen Lim ca37f16f58 Chore/refactor e2e tests (#33647)
* Set up E2E tests for staging

* update

* Update

* Update .env.staging.example

* Fix node modules

* Fix

* Attempt to swap local-studio-tests to use the new studio-tests directory

* Omit storage state if running tests for local self host

* Fix test:local command

* Deprecate local-studio-test folder

* Rename local studio tests GH action to E2E test
2025-02-20 12:02:41 +08:00

24 lines
733 B
JSON

{
"name": "studio-tests",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"preinstall": "npx only-allow pnpm",
"env:setup": "supabase start -x studio && supabase status --output json > keys.json && node generate-local-env.js",
"pretest:local": "pnpm env:setup",
"test:local": "pnpm env:setup && export ENV=local && export PROJECT_REF=default && playwright test",
"posttest:local": "supabase stop --no-backup",
"test:staging": "export ENV=staging && playwright test",
"clean": "rimraf node_modules"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.49.0",
"lodash": "^4.17.21",
"dotenv": "^16.4.7"
}
}