fix(ci): preserve cross-platform lint suppressions
This commit is contained in:
parent
ac4ade3aaa
commit
2a72de67d1
2 changed files with 3 additions and 0 deletions
|
|
@ -328,6 +328,7 @@ export class MessageFeedbackController implements HostObservable<MessageFeedback
|
|||
if (!loaded.ok) return loaded
|
||||
// Disposal can land while the seeding read is in flight; without this
|
||||
// second check the fiber would still reach the wire after unloading.
|
||||
// oxlint-disable-next-line typescript/no-unnecessary-condition -- dispose() can run during the await.
|
||||
if (this.disposed) return DISPOSED
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -345,6 +345,7 @@ describe('MessageFeedbackController', () => {
|
|||
})
|
||||
|
||||
it('preserves a non-Error list rejection as a diagnostic string', async () => {
|
||||
// oxlint-disable-next-line typescript/prefer-promise-reject-errors -- the non-Error rejection is the scenario under test.
|
||||
const { remote } = fakeRemote({ list: () => Promise.reject('socket string') })
|
||||
const controller = new MessageFeedbackController(remote, SESSION)
|
||||
|
||||
|
|
@ -355,6 +356,7 @@ describe('MessageFeedbackController', () => {
|
|||
})
|
||||
|
||||
it('preserves a non-Error mutation rejection as a diagnostic string', async () => {
|
||||
// oxlint-disable-next-line typescript/prefer-promise-reject-errors -- the non-Error rejection is the scenario under test.
|
||||
const { remote } = fakeRemote({ put: () => Promise.reject('nope') })
|
||||
const controller = new MessageFeedbackController(remote, SESSION)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue