GitHub Actions / Tests Results (8.x, 16.x, ubuntu-latest)
failed
Dec 21, 2024 in 0s
39 passed, 2 failed and 0 skipped
❌ reports/tests.json
41 tests were completed in 431ms with 39 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/rules/dprint-dockerfile.ts | 5✅ | 38ms | ||
test/rules/dprint-json.ts | 5✅ | 13ms | ||
test/rules/dprint-malva.ts | 6✅ | 1❌ | 17ms | |
test/rules/dprint-marhup.ts | 4✅ | 1❌ | 14ms | |
test/rules/dprint-markdown.ts | 5✅ | 13ms | ||
test/rules/dprint-toml.ts | 4✅ | 7ms | ||
test/rules/dprint-typescript.ts | 10✅ | 314ms |
✅ 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; }
Should have 2 errors but had 0: []
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>
Should have 4 errors but had 0: []
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
Annotations
Check failure on line 0 in reports/tests.json
github-actions / Tests Results (8.x, 16.x, ubuntu-latest)
test/rules/dprint-malva.ts ► dprint-plugin-malva invalid ► .test { color: #f00; }
Failed test found in:
reports/tests.json
Error:
Should have 2 errors but had 0: []
Raw output
AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: []
at testInvalidTemplate (node_modules/eslint/lib/rule-tester/rule-tester.js:965:24)
at Context.<anonymous> (node_modules/eslint/lib/rule-tester/rule-tester.js:1194:33)
at processImmediate (node:internal/timers:466:21)
Check failure on line 0 in reports/tests.json
github-actions / Tests Results (8.x, 16.x, ubuntu-latest)
test/rules/dprint-marhup.ts ► dprint-plugin-markup invalid ► <html> <head> </head></html>
Failed test found in:
reports/tests.json
Error:
Should have 4 errors but had 0: []
Raw output
AssertionError [ERR_ASSERTION]: Should have 4 errors but had 0: []
at testInvalidTemplate (node_modules/eslint/lib/rule-tester/rule-tester.js:965:24)
at Context.<anonymous> (node_modules/eslint/lib/rule-tester/rule-tester.js:1194:33)
at processImmediate (node:internal/timers:466:21)
Loading