mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-01 02:01:24 +00:00
test(cursor-hook): accept either quote style in the -s KILL assertions
CI runs prettier before vitest, which normalizes the wrapped spawnSync arguments to single quotes; the double-quoted substring assertions then fail on all platforms. Match both quote styles instead.
This commit is contained in:
parent
ea9d097be5
commit
190ab0d4f6
1 changed files with 2 additions and 2 deletions
|
|
@ -470,8 +470,8 @@ describe('Cursor hook npx fallback host budget', () => {
|
|||
expect(fnBody).toContain('timeout: npxTimeout');
|
||||
expect(fnBody).not.toMatch(/timeout:\s*timeout\s*\+\s*5000/);
|
||||
// npx grandchild is killed outright so it cannot keep the DB lock
|
||||
expect(fnBody).toContain('"-s"');
|
||||
expect(fnBody).toContain('KILL');
|
||||
expect(fnBody).toMatch(/['"]-s['"]/);
|
||||
expect(fnBody).toMatch(/['"]KILL['"]/);
|
||||
});
|
||||
|
||||
it('reads the shipped timeout value, not a detached literal', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue