mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
chore(lint): replace ESLint with Oxlint and clear anti-slop findings
This commit is contained in:
1 parent
c6c13335e5
commit
b625acfc0c
1083 files changed
+67089
-80136
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { z } from 'zod'
|
||||
import { readFileSync, mkdtempSync, mkdirSync, writeFileSync, rmSync, readdirSync, statSync, existsSync, chmodSync } from 'fs'
|
||||
import { execFileSync, execSync, spawnSync } from 'child_process'
|
||||
import { join } from 'path'
|
||||
@@ -394,7 +395,7 @@ describe('sandbox guest image', () => {
|
||||
stdio: 'pipe',
|
||||
})
|
||||
} catch (error) {
|
||||
status = (error as { status?: number }).status ?? 1
|
||||
status = z.object({ status: z.number().optional() }).safeParse(error).data?.status ?? 1
|
||||
}
|
||||
|
||||
expect(status, 'a failed cargo build must abort the verification script').not.toBe(0)
|
||||
|
||||
Reference in new issue
Block a user