archunit
Version:
ArchUnit TypeScript is an architecture testing library, to specify and assert architecture rules in your TypeScript app
12 lines • 540 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const __1 = require("../..");
// This is a demonstration file that shows how to use the metrics API in your project
describe('Using LCOM metrics in your project', () => {
it('check classes have good cohesion', async () => {
// passes always since LCOM is max 1
const rule = (0, __1.metrics)().lcom().lcom96b().shouldBeBelowOrEqual(1);
await expect(rule).toPassAsync();
});
});
//# sourceMappingURL=metrics-usage-example.spec.js.map