github-issue-tower-defence-management 2.184.4 → 2.184.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.test.ts +21 -1
- package/package.json +2 -1
package/README.test.ts
CHANGED
|
@@ -259,7 +259,7 @@ const snapshotRepositoryFiles = (): string => {
|
|
|
259
259
|
.relative(__dirname, entryPath)
|
|
260
260
|
.split(path.sep)
|
|
261
261
|
.join('/');
|
|
262
|
-
if (relativePath === 'reports') {
|
|
262
|
+
if (relativePath === 'reports' || relativePath === 'tmp') {
|
|
263
263
|
continue;
|
|
264
264
|
}
|
|
265
265
|
if (relativePath.split('/').includes('.git')) {
|
|
@@ -349,6 +349,26 @@ test('README.md llmModelNameByAgentName repository snapshot ignores generated te
|
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
|
|
352
|
+
test('README.md llmModelNameByAgentName repository snapshot ignores files other suites write under tmp', () => {
|
|
353
|
+
const temporaryRootDirectory = path.join(__dirname, 'tmp');
|
|
354
|
+
fs.mkdirSync(temporaryRootDirectory, { recursive: true });
|
|
355
|
+
const generatedTemporaryDirectory = fs.mkdtempSync(
|
|
356
|
+
path.join(temporaryRootDirectory, 'readme-snapshot-tmp-'),
|
|
357
|
+
);
|
|
358
|
+
|
|
359
|
+
try {
|
|
360
|
+
const beforeSnapshot = snapshotRepositoryFiles();
|
|
361
|
+
fs.writeFileSync(
|
|
362
|
+
path.join(generatedTemporaryDirectory, 'generated-by-another-suite.txt'),
|
|
363
|
+
'written by a suite running in parallel with the README test',
|
|
364
|
+
);
|
|
365
|
+
|
|
366
|
+
expect(snapshotRepositoryFiles()).toBe(beforeSnapshot);
|
|
367
|
+
} finally {
|
|
368
|
+
fs.rmSync(generatedTemporaryDirectory, { force: true, recursive: true });
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
|
|
352
372
|
test('README.md llmModelNameByAgentName repository snapshot detects arbitrary repository file changes', () => {
|
|
353
373
|
const sourceChangeDirectory = fs.mkdtempSync(
|
|
354
374
|
path.join(__dirname, 'readme-snapshot-source-'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-issue-tower-defence-management",
|
|
3
|
-
"version": "2.184.
|
|
3
|
+
"version": "2.184.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
"undici": "6.29.1"
|
|
135
135
|
},
|
|
136
136
|
"undici": "7.30.1",
|
|
137
|
+
"glob": "14.0.2",
|
|
137
138
|
"fast-uri": "3.1.9",
|
|
138
139
|
"npm": {
|
|
139
140
|
".": "12.2.1",
|