jest-runner-stylelint
Version:
Stylelint runner for Jest
19 lines (14 loc) • 581 B
JavaScript
const getCliOptions = require("../getCliOptions");
const path = require("path");
describe("getCliOptions", () => {
it("check cli options in jest-runner-stylelint.config", () => {
const rootDir = path.resolve(__dirname, "../../__fixtures__");
const config = getCliOptions({ rootDir });
expect(config).toEqual({ cliOptions: { allowEmptyInput: true } });
});
it("check cli options without config", () => {
const rootDir = path.resolve(__dirname, "./");
const config = getCliOptions({ rootDir });
expect(config).toEqual({ cliOptions: {} });
});
});