Lines Matching defs:hooks
235 this.hooks = {
254 this.hooks = {
258 beforeEach: ArrayPrototypeSlice(parent.hooks.beforeEach),
259 afterEach: ArrayPrototypeSlice(parent.hooks.afterEach),
491 ArrayPrototypePush(this.hooks[name], hook);
563 await ArrayPrototypeReduce(this.hooks[hook], async (prev, hook) => {
590 if (this.hooks.after.length > 0) {
595 if (this.parent?.hooks.afterEach.length > 0) {
603 if (this.parent?.hooks.before.length > 0) {
606 if (this.parent?.hooks.beforeEach.length > 0) {
658 // Do not abort hooks and the root test as hooks instance are shared between tests suite so aborting them will
721 this.root.hooks.after.length > 0) {
722 // This is done so that any global after() hooks are run. At this point
938 if (this.parent.hooks.before.length > 0) {