"use strict";

var mocha = require("../../lib/mocha.cjs");

var beforeEach = mocha.beforeEach;
var it = mocha.it;
var describe = mocha.describe;

describe('it.only via require("mocha")', function () {
  beforeEach(function () {
    this.didRunBeforeEach = true;
  });
  describe("nested within a describe/context", function () {
    it.only("should run all enclosing beforeEach hooks", function () {
      require("node:assert").strictEqual(this.didRunBeforeEach, true);
    });
  });
});
