evals: use pre-commit hooks

This commit is contained in:
Drew Ritter
2026-05-06 15:41:52 -07:00
committed by Drew Ritter
parent 35e42a16ce
commit 7f02ccd91b
14 changed files with 244 additions and 63 deletions

View File

@@ -16,12 +16,13 @@ This tests the "locally careful, globally blind" failure mode: the agent
reads the component it plans to modify but never investigates how that
component is routed/rendered.
"""
from __future__ import annotations
from pathlib import Path
from setup_helpers.base import _git
PACKAGE_JSON = """\
{
"name": "pulse-dashboard",
@@ -507,7 +508,14 @@ describe('TeamService', () => {
it('fetches recent activity with limit', async () => {
const mockActivity = [
{ id: '1', userId: 'u1', userName: 'Alice', action: 'completed', target: 'Task #42', timestamp: Date.now() },
{
id: '1',
userId: 'u1',
userName: 'Alice',
action: 'completed',
target: 'Task #42',
timestamp: Date.now(),
},
];
global.fetch = vi.fn().mockResolvedValue({
json: () => Promise.resolve(mockActivity),