Testing local meteor packages

I have few local packahes I would like to test. I need to ask because i see some inconsistency in documentation. It says that recommended test runned is meteortesting:mocha. However if you run meteor create --package package-name it adds tinytest as dependency and in the autogenerated file package-name--tests.js it uses Tinytest. This suggests that recommended way is Tinytest runner but from other hand it is never mentioned here Testing | Meteor Guide. Also when i tried to use recommended meteortesting:mocha and I add something as simple as

import { assert } from "chai";

describe("array", function () {
  console.log("inside the group");
  it("should return element index if present", function (done) {
    console.log("inside test");
    assert.equal([1, 2, 3].indexOf(2), 1);
  });
});

and run meteor test-packages ./

it never go inside test. I see ‘inside group’ printed in both server and browser console but test does not run. Could someone shed some light on this, what is proper way, honestly I would prefer to be able to use mocha.

rubber duck debugging at least help for one thing. I didnt specify runner package i should run

meteor test-packages ./ --driver-package meteortesting:mocha

:slight_smile:

Yes, it looks like a dusty, unloved corner.