fix(ci): stop writing dialog close refs during render
eslint-plugin-react-hooks forbids updating ref.current in render, which failed staging lint after the compact rectification board landed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -363,6 +363,9 @@ test("the natal house table is a live board beside the chat, not a message", ()
|
||||
assert.match(board, /aria-live="polite"/);
|
||||
assert.match(board, /groupWindowTransitions/);
|
||||
assert.match(board, /<dialog/);
|
||||
assert.doesNotMatch(board, /onCloseRef\.current = onClose/);
|
||||
assert.match(board, /node\.addEventListener\("close", handleClose\)/);
|
||||
assert.match(board, /}, \[compact, onClose\]\);/);
|
||||
assert.match(chat, /RectificationBoardPeek/);
|
||||
assert.match(houseTable, /当前本命宫位/);
|
||||
assert.match(houseTable, /补充经历后会按新线索重算/);
|
||||
|
||||
Reference in New Issue
Block a user