Skip to content

πŸ”– v1.0.3 (built with c553a58)

Sign in for the full log view
GitHub Actions / Tests Results (9.x, 20.x, ubuntu-latest) succeeded Mar 9, 2025 in 0s

41 passed, 0 failed and 0 skipped

Tests passed successfully

βœ…Β reports/tests.json

41 tests were completed in 402ms with 41 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/rules/dprint-dockerfile.ts 5βœ… 54ms
test/rules/dprint-json.ts 5βœ… 27ms
test/rules/dprint-malva.ts 7βœ… 28ms
test/rules/dprint-marhup.ts 5βœ… 19ms
test/rules/dprint-markdown.ts 5βœ… 43ms
test/rules/dprint-toml.ts 4βœ… 20ms
test/rules/dprint-typescript.ts 10βœ… 201ms

βœ…Β test/rules/dprint-dockerfile.ts

dprint/dockerfile invalid
  βœ… FROM   ubuntu:latest

COPY--chown=user:use test.txt /dir/\u000d
\u000d

  βœ… FROM ubuntu:latest

ENV TEST equality

dprint/dockerfile valid
  βœ… FROM ubuntu:latest

  βœ… FROM ubuntu:latest\u000d

  βœ… Unknown language file

βœ…Β test/rules/dprint-json.ts

dprint/json invalid
  βœ… {
  "hello": "world"
}

  βœ… {
"hello": "world"} //comment
dprint/json valid
  βœ… { "hello": "world" } // comment

  βœ… { "hello": "world" } //comment

  βœ… Unknown language file

βœ…Β test/rules/dprint-malva.ts

dprint-plugin-malva invalid
  βœ… .test { color: #f00; }

dprint-plugin-malva valid
  βœ… .test
  color: #ff0000

  βœ… .test {
  color: #f00;
}

  βœ… .test {
  color: #ff0000;
}

  βœ… .test {
  color: #ff0000;
}

  βœ… .test {
  color: #FF0000;
}

  βœ… Unknown language file

βœ…Β test/rules/dprint-marhup.ts

dprint-plugin-markup invalid
  βœ… <html>
<head>  </head></html>
dprint-plugin-markup valid
  βœ… <html>
  <head></head>
</html>

  βœ… <html>
</html>

  βœ… <html></html>

  βœ… Unknown language file

βœ…Β test/rules/dprint-markdown.ts

dprint/markdown invalid
  βœ… __STRONG__

  βœ… #  Title
texte
dprint/markdown valid
  βœ… __STRONG__

  βœ… **STRONG**

  βœ… Unknown language file

βœ…Β test/rules/dprint-toml.ts

dprint/toml invalid
  βœ… [hello]

who ="World"   #comment
dprint/toml valid
  βœ… [hello]
who = "World" # comment

  βœ… [hello]
who = "World" #comment

  βœ… Unknown language file

βœ…Β test/rules/dprint-typescript.ts

dprint/typescript invalid
  βœ… console . log('hello!')
  βœ… console.log("hello!");;;

  βœ… const loc = d.type === "added"
    ? sourceCode.getLocFromIndex(d.range[0])
    : {
        start: sourceCode.getLocFromIndex(d.range[0]),
        end: sourceCode.getLocFromIndex(d.range[1]),
    };

  βœ… const loc = d.type === "added" ?
    sourceCode.getLocFromIndex(d.range[0]) :
    {
        start: sourceCode.getLocFromIndex(d.range[0]),
        end: sourceCode.getLocFromIndex(d.range[1]),
    };

  βœ… type TFormatFileText =
    typeof import("@dprint/core").formatText;


  βœ… type TypeScriptPlugin =
 typeof import("dprint-plugin-typescript").TypeScriptPlugin;

  βœ… type TypeScriptPlugin = typeof import("dprint-plugin-typescript").TypeScriptPlugin;
dprint/typescript valid
  βœ… console.log('hello!');

  βœ… console.log("hello!");

  βœ… Unknown language file