Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

595 B
Raw Blame
"use strict";

var runMocha = require("../helpers.cjs").runMocha;
var path = require("node:path");

describe("--reporter", function () {
  it("should work for ESM", function (done) {
    runMocha(
      "passing.fixture.cjs",
      [
        "--reporter",
        path.join(
          __dirname,
          "..",
          "fixtures",
          "options",
          "reporter-esm.fixture.js",
        ),
      ],
      function (err, res) {
        if (err) {
          return done(err);
        }
        expect(res, "to have passed");
        done();
      },
      "inherit",
    );
  });
});