fix: adopt modifyJson pattern for atomic read-modify-write operations (#1569)

Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
Resolves issue #1568.
This commit is contained in:
Ben Coombs
2026-01-14 18:20:55 +00:00
committed by GitHub
parent e762e4f646
commit 4cfde1c3d5
3 changed files with 154 additions and 147 deletions

View File

@@ -3,18 +3,11 @@
* Verifies that concurrent access to tasks.json is properly serialized
*/
import {
jest,
describe,
it,
expect,
beforeEach,
afterEach
} from '@jest/globals';
import fs from 'fs';
import path from 'path';
import os from 'os';
import path from 'path';
import { fileURLToPath } from 'url';
import { afterEach, beforeEach, describe, expect, it } from '@jest/globals';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);