UNPKG

archunit

Version:

ArchUnit TypeScript is an architecture testing library, to specify and assert architecture rules in your TypeScript app

39 lines 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require("../.."); describe('CheckOptions Integration Test', () => { it('should work without options', async () => { const rule = (0, __1.projectFiles)() .inFolder('nonexistent-folder') .should() .haveNoCycles(); await expect(rule).toPassAsync(); }); it('should work with combined options', async () => { const rule = (0, __1.projectFiles)() .inFolder('nonexistent-folder') .should() .haveNoCycles(); await expect(rule).toPassAsync(); }); it('should work with allowEmptyTests option', async () => { const rule = (0, __1.projectFiles)() .inFolder('completely-nonexistent') .should() .haveNoCycles(); const options = { allowEmptyTests: true, }; await expect(rule).toPassAsync(options); }); it('should work with pattern matching and options', async () => { const rule = (0, __1.projectFiles)() .inPath('hey/nonexistent-*.ts') .should() .haveName(/.*\.ts$/); await expect(rule).toPassAsync({ allowEmptyTests: true, }); }); }); //# sourceMappingURL=check-options-integration.test.js.map