ignore-absolute-path.js 464 B

12345678910111213141516
  1. "use strict";
  2. const path = require("path");
  3. const runPrettier = require("../runPrettier");
  4. describe("support absolute filename", () => {
  5. runPrettier("cli/ignore-absolute-path", [
  6. path.resolve(__dirname, "../cli/ignore-absolute-path/ignored/module.js"),
  7. path.resolve(__dirname, "../cli/ignore-absolute-path/depth1/ignored/*.js"),
  8. path.resolve(__dirname, "../cli/ignore-absolute-path/regular-module.js"),
  9. "-l"
  10. ]).test({
  11. status: 1
  12. });
  13. });