declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
16 lines • 835 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const logger_1 = require("../../utils/logger");
const dirPath_1 = require("../__test_assets__/dirPath");
const validate_1 = require("./validate");
const logSpy = jest.spyOn(console, 'log').mockImplementation(() => logger_1.log.debug); // swap to log debug so its not displaying during tests by default
describe('plan', () => {
beforeEach(() => jest.clearAllMocks());
it('should be able to plan for an example declarations directory', async () => {
await (0, validate_1.validate)({
declarePracticesConfigPath: `${dirPath_1.testAssetsDirectoryPath}/example-best-practices-repo/declapract.declare.yml`,
});
expect(logSpy.mock.calls).toMatchSnapshot();
});
});
//# sourceMappingURL=validate.integration.test.js.map