-
Notifications
You must be signed in to change notification settings - Fork 3
/
cypress.config.js
41 lines (39 loc) · 1.08 KB
/
cypress.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const { defineConfig } = require("cypress");
const { dotenv } = require("dotenv").config({
path: 'cypress/.env'
});
const fs = require("fs");
console.log(process.env);
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
on('task', {
readdir({ path }) {
return fs.readdirSync(path, { withFileTypes: true })
.filter((item) => item.isDirectory())
.map((item) => item.name);
}
});
},
baseUrl: "http://localhost:" + process.env.OJS_PORT,
},
env: {
DBTYPE: process.env.OJS_DB_DRIVER,
DBNAME: process.env.OJS_DB_NAME,
DBUSERNAME: process.env.OJS_DB_USER,
DBPASSWORD: process.env.OJS_DB_PASSWORD,
DBHOST: process.env.OJS_DB_HOST,
"contextTitles": {
"en_US": "Journal of Geolocations",
},
"contextDescriptions": {
"en_US": "The Journal of Geolocations is a very spatial journal.",
},
"contextAcronyms": {
"en_US": "JGL"
},
"defaultGenre": "Article Text",
"contextPath": "geolocation",
},
});