Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7862583
setup-test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
setup-test.js
View Options
const
Sealious
=
require
(
"./lib/main.js"
);
const
locreq
=
require
(
"locreq"
)(
__dirname
);
before
(
async
()
=>
{
global
.
TestApp
=
new
Sealious
.
App
(
{
upload_path
:
"/tmp"
,
datastore_mongo
:
{
host
:
"db"
,
password
:
"sealious-test"
},
smtp
:
{
host
:
"mailcatcher"
,
port
:
1025
,
user
:
"any"
,
password
:
"any"
,
},
email
:
{
from_name
:
"Sealious test app"
,
from_address
:
"sealious@example.com"
,
},
core
:
{
environment
:
"production"
},
app
:
{
version
:
"0.0.0-test"
},
logger
:
{
level
:
"emerg"
},
tests
:
{
//non-standard, just for testing
smtp_api_url
:
"http://mailcatcher:1080"
,
},
},
{
name
:
"testing app"
,
logo
:
locreq
.
resolve
(
"lib/assets/logo.png"
),
default_language
:
"pl"
,
version
:
"0.0.0-test"
,
base_url
:
"http://localhost:8080"
,
colors
:
{
primary
:
"#4d394b"
,
},
}
);
global
.
Sealious
=
Sealious
;
return
TestApp
.
start
().
catch
(
error
=>
{
console
.
error
(
error
);
process
.
exit
(
1
);
});
});
after
(
async
()
=>
{
await
TestApp
.
stop
();
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 13, 20:32 (6 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
877059
Default Alt Text
setup-test.js (1 KB)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment