mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
The single file which represented the bulk of the `meteor self-test` functionality had got a bit heavy and it stood to benefit from some dissemination. I embarked on this change originally when looking into replacing PhantomJS with Chrome Headless (and a new `ChromeClient` class) within self-test. Unfortunately, I didn't have time to take this the last step of actually implementing Chrome, but this should hopefully facilitate that change in the future by providing what I believe to be better compartmentalization of this logic. I apologize for the (likely) difficulty of reviewing this commit. Due to heavy intertwining of existing code it was hard to arrange these changes in an easy-to-review manner. I believe a reviewer will find that it's mainly copy and pasting into different files and careful adjusting of those files (new) module dependencies.
9 lines
213 B
JavaScript
9 lines
213 B
JavaScript
// Exception representing a test failure
|
|
export default class TestFailure {
|
|
constructor(reason, details) {
|
|
this.reason = reason;
|
|
this.details = details || {};
|
|
this.stack = (new Error()).stack;
|
|
}
|
|
}
|