index.js
function psec(name, run) {
  const test = { name, run, before: null, after: null }
  ctx.tests.push(test)
  ctx.run()
  return {
    beforeEach(fn) {
      test.before = fn
      return this
    },
    afterEach(fn) {
      test.after = fn
      return this
    },
  }
}
function psec(name, run) {
  const test = { name, run, before: null, after: null }
  ctx.tests.push(test)
  ctx.run()
  return {
    beforeEach(fn) {
      test.before = fn
      return this
    },
    afterEach(fn) {
      test.after = fn
      return this
    },
  }
}
function psec ( name , run ) { const test = { name , run , before : null , after : null } ctx . tests . push ( test ) ctx . run ( ) return { beforeEach ( fn ) { test . before = fn return this } , afterEach ( fn ) { test . after = fn return this } , } }
Register a test to cycle
Register a test to cycle