declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
14 lines • 729 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const dirPath_1 = require("../../__test_assets__/dirPath");
const readPracticeDeclarations_1 = require("./readPracticeDeclarations");
describe('readPracticeDeclarations', () => {
it('should get the declarations correctly', async () => {
const practices = await (0, readPracticeDeclarations_1.readPracticeDeclarations)({
declaredPracticesDirectory: `${dirPath_1.testAssetsDirectoryPath}/example-best-practices-repo/src/practices`,
});
expect(practices.length).toBeGreaterThanOrEqual(7);
expect(practices).toMatchSnapshot();
});
});
//# sourceMappingURL=readPracticeDeclarations.integration.test.js.map