Allow single server instance in test suite (#7262)
* initial pass * reconfigureServer when needed * finish postgres tests * mongo tests * more tests * clean up * re-add skipped test * Fix transaction tests * handle batch * AuthenticationAdapter fix * More reconfiguration * clean up * properly terminate cli servers * handle Parse.Push * Flaky PushController * ensure reconfigureServer when changed * fix postgres tests * remove console.log * LiveQuery spec remove duplicates and listeners
This commit is contained in:
15
spec/support/CurrentSpecReporter.js
Executable file
15
spec/support/CurrentSpecReporter.js
Executable file
@@ -0,0 +1,15 @@
|
||||
// Sets a global variable to the current test spec
|
||||
// ex: global.currentSpec.description
|
||||
|
||||
global.currentSpec = null;
|
||||
|
||||
class CurrentSpecReporter {
|
||||
specStarted(spec) {
|
||||
global.currentSpec = spec;
|
||||
}
|
||||
specDone() {
|
||||
global.currentSpec = null;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CurrentSpecReporter;
|
||||
Reference in New Issue
Block a user