UNPKG

declapract

Version:

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

16 lines 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const logger_1 = require("../../utils/logger"); const dirPath_1 = require("../__test_assets__/dirPath"); const plan_1 = require("./plan"); 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 project', async () => { await (0, plan_1.plan)({ usePracticesConfigPath: `${dirPath_1.testAssetsDirectoryPath}/example-best-practices-repo/src/examples/lambda-service/declapract.use.yml`, }); expect(logSpy.mock.calls).toMatchSnapshot(); }); }); //# sourceMappingURL=plan.integration.test.js.map