mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 19:59:34 +08:00
Utilizing test db for e2e tests.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
"test": "mocha --compilers js:babel-core/register --recursive tests",
|
||||
"test-watch": "mocha --compilers js:babel-core/register --recursive -w tests",
|
||||
"embed-start": "npm run build && ./bin/www",
|
||||
"pree2e": "node_modules/selenium-standalone/bin/selenium-standalone install",
|
||||
"pree2e": "./pree2e.sh",
|
||||
"e2e": "node_modules/.bin/nightwatch"
|
||||
},
|
||||
"config": {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
node_modules/selenium-standalone/bin/selenium-standalone install
|
||||
export TALK_PORT=3011
|
||||
export TALK_MONGO_URL='mongodb://localhost/talk_test'
|
||||
npm start &
|
||||
wait 2
|
||||
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
waitForConditionTimeout: 20000,
|
||||
baseUrl: 'http://localhost:3000'
|
||||
baseUrl: 'http://localhost:3011'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user