Skip to content

armgit / mocha

Public Imported from GitHub
0

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

299 B
Raw Blame
// `enum` is not erasable syntax, so Node's built-in type stripping rejects it.
// This spec only runs when tsx is actually loaded.
enum Answer {
  Yes = 1,
}

it("should run a TypeScript spec loaded via tsx", function () {
  if (Answer.Yes !== 1) {
    throw new Error("unexpected value");
  }
});