declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
25 lines • 943 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const compile_1 = require("../../logic/commands/compile");
const compile_2 = __importDefault(require("./compile"));
jest.mock('../../logic/commands/compile');
const compileMock = compile_1.compile;
describe('compile', () => {
it('should call the compile command logic', async () => {
await compile_2.default.run([
'-s',
'/some/path/to/use/src',
'-d',
'/some/path/to/use/dist',
]);
expect(compileMock).toBeCalledTimes(1);
expect(compileMock).toHaveBeenCalledWith({
sourceDirectory: '/some/path/to/use/src',
distributionDirectory: '/some/path/to/use/dist',
});
});
});
//# sourceMappingURL=compile.test.js.map