Skip to content

Commit 0fcc8c5

Browse files
committed
ci was not in fact unstable
1 parent 5020408 commit 0fcc8c5

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

test/commands/pull.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
3-
import { rm } from 'node:fs/promises';
3+
import { mkdir, rm } from 'node:fs/promises';
44
import { join } from 'node:path';
55

66
import { runCommand } from '@oclif/test';
@@ -167,6 +167,7 @@ describe('apify pull', () => {
167167
const testActor = await testUserClient
168168
.actors()
169169
.create({ name: `pull-test-${Date.now()}`, ...TEST_ACTOR_GIT_REPO });
170+
170171
actorsForCleanup.add(testActor.id);
171172
actorNamesForCleanup.add(testActor.name);
172173

@@ -181,12 +182,19 @@ describe('apify pull', () => {
181182
const testActor = await testUserClient
182183
.actors()
183184
.create({ name: `pull-test-${Date.now()}`, ...TEST_ACTOR_SOURCE_FILES });
185+
184186
actorsForCleanup.add(testActor.id);
185187
actorNamesForCleanup.add('pull-test-no-name');
186188

187189
const contentBeforeEdit = JSON.parse((TEST_ACTOR_SOURCE_FILES.versions![0] as any).sourceFiles[2].content);
188190
contentBeforeEdit.name = testActor.name;
189-
(TEST_ACTOR_SOURCE_FILES.versions![0] as any).sourceFiles[2].content = contentBeforeEdit;
191+
(TEST_ACTOR_SOURCE_FILES.versions![0] as any).sourceFiles[2].content = JSON.stringify(
192+
contentBeforeEdit,
193+
null,
194+
'\t',
195+
);
196+
197+
await mkdir(join('pull-test-no-name', '.actor'), { recursive: true });
190198

191199
writeFileSync(
192200
join('pull-test-no-name', LOCAL_CONFIG_PATH),

0 commit comments

Comments
 (0)