Running Copilot coding agent #34
Annotations
2 errors
|
packages/prettier-plugin/src/index.test.js > prettier-plugin > blank line rules > should not move comments before if statement into the test condition:
packages/prettier-plugin/src/index.test.js#L4814
Error: expect(received).toBeWithNewline(expected)
Expected:
component App() {
<div id="second-top-block">
// <div>
if (true) {
<div>{'b is true'}</div>
}
// <div>
// <div>
// if (@b) {
// <span>nested</span>
// }
// </div>
// </div>
// <div />
// </div>
// <div id="sibling-block">{'Sibling'}</div>
</div>
}
Received:
component App() {
<div id="second-top-block">
if (true) {
<div>{'b is true'}</div>
}
// <div>
// <div>
// if (@b) {
// <span>nested</span>
// }
// </div>
// </div>
// <div />
// </div>
// <div id="sibling-block">{'Sibling'}</div>
</div>
}
❯ packages/prettier-plugin/src/index.test.js:4814:19
|
|
packages/prettier-plugin/src/index.test.js > prettier-plugin > blank line rules > should not move comments before if statement into the test condition:
packages/prettier-plugin/src/index.test.js#L4814
Error: expect(received).toBeWithNewline(expected)
Expected:
component App() {
<div id="second-top-block">
// <div>
if (true) {
<div>{'b is true'}</div>
}
// <div>
// <div>
// if (@b) {
// <span>nested</span>
// }
// </div>
// </div>
// <div />
// </div>
// <div id="sibling-block">{'Sibling'}</div>
</div>
}
Received:
component App() {
<div id="second-top-block">
if (
// <div>
true
) {
<div>{'b is true'}</div>
}
// <div>
// <div>
// if (@b) {
// <span>nested</span>
// }
// </div>
// </div>
// <div />
// </div>
// <div id="sibling-block">{'Sibling'}</div>
</div>
}
❯ packages/prettier-plugin/src/index.test.js:4814:19
|