Skip to content

Instantly share code, notes, and snippets.

@conner
Created May 27, 2014 21:01
Show Gist options
  • Save conner/23e04c236a8e5d89cbee to your computer and use it in GitHub Desktop.
Save conner/23e04c236a8e5d89cbee to your computer and use it in GitHub Desktop.
defining global jasmine matchers in protractor
// --- from protractor conf.js
onPrepare: function() {
beforeEach(function() {
// things to do before every run
this.addMatchers({
customMatcher: function() {
// custom matcher codez
}
});
});
afterEach(function() {
// things to do after every tun
});
// other prep work (publish globals, test output config, etc)
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment