UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

16 lines 908 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const dirPath_1 = require("../__test_assets__/dirPath"); const readDeclarePracticesConfig_1 = require("./readDeclarePracticesConfig"); describe('readDeclarePracticesConfig', () => { it('should be able to read a declared practices from example declarations repo config', async () => { const config = await (0, readDeclarePracticesConfig_1.readDeclarePracticesConfig)({ configPath: `${dirPath_1.testAssetsDirectoryPath}/example-best-practices-repo/declapract.declare.yml`, }); // console.log(config); expect(config.practices.length).toBeGreaterThanOrEqual(7); expect(config.useCases.length).toEqual(2); expect(config).toMatchSnapshot({ rootDir: expect.any(String) }); // log an example }); }); //# sourceMappingURL=readDeclarePracticesConfig.integration.test.js.map