mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
chore(quality): ratchet Oxlint, React Doctor, and Zustand performance (#11034)
* chore(quality): ratchet lint and Zustand performance * fix(ci): stabilize React peer lock snapshot * fix(ci): isolate PR diff and React Doctor CLI
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { selectPullRequestDiffBase } from './git-pull-request-diff-base.mjs'
|
||||
|
||||
describe('pull request diff base selection', () => {
|
||||
it('uses the merge commit first parent for pull request checkouts', () => {
|
||||
expect(
|
||||
selectPullRequestDiffBase('event-base', ['current-base', 'pull-request-head'], 'pull_request')
|
||||
).toBe('current-base')
|
||||
})
|
||||
|
||||
it('keeps the requested base outside synthetic pull request merges', () => {
|
||||
expect(selectPullRequestDiffBase('requested-base', ['parent'], 'pull_request')).toBe(
|
||||
'requested-base'
|
||||
)
|
||||
expect(selectPullRequestDiffBase('requested-base', ['parent', 'other'], 'push')).toBe(
|
||||
'requested-base'
|
||||
)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user