renew config and package

This commit is contained in:
Annie Huang committed 2023-11-13 23:08:29 +08:00
1 parent 62fe65d53a
commit f9914b8095
3 files changed
+372 -11

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
const { defineConfig } = require('cypress')
const process = require('process')
require('dotenv').config()
const getConfig = (key, defaultValue) => {
return process.env[key] || defaultValue
+7 -1
View File
@@ -8,6 +8,12 @@
"test": "cypress run"
},
"dependencies": {
"cypress": "^13.2.0"
"cypress": "^13.2.0",
"dotenv": "^16.3.1",
"save": "^2.9.0"
},
"devDependencies": {
"@testing-library/cypress": "^10.0.1",
"cypress": "^13.5.0"
}
}