Sha256: 5716f1282afe46af40f1aed488e05eea047fb9a9fff6c2eadc211f49a16c2fe8
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 Bytes
Contents
const sass = require("../../../package/rules/sass") jest.mock("../../../package/utils/helpers", () => { const original = jest.requireActual("../../../package/utils/helpers") const canProcess = (rule, fn) => { return fn("This path was mocked") } return { ...original, canProcess } }) jest.mock("../../../package/utils/inliningCss", () => true) describe("sass rule", () => { test("contains loadPaths as the sassOptions key if sass-loader is v15 or earlier", () => { expect(typeof sass.use[3].options.sassOptions.includePaths).toBe( "undefined" ) expect(typeof sass.use[3].options.sassOptions.loadPaths).toBe("object") }) })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shakapacker-8.1.0 | test/package/rules/sass1.test.js |
shakapacker-8.0.2 | test/package/rules/sass1.test.js |