Skip to content

Commit 1a8c8ce

Browse files
authored
Merge pull request #1326 from chromaui/cody/flaky-test
Increase flaky test timeout
2 parents 9ed03ec + 7e9321e commit 1a8c8ce

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

‎node-src/lib/turbosnap/getDependencies.test.ts‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,6 @@ describe('getDependencies', () => {
5757
}
5858
});
5959

60-
it.skip('should handle checked out manifest and lock files', async () => {
61-
const tmpdir = fs.mkdtempSync(path.join(os.tmpdir(), 'chromatic'));
62-
63-
const dependencies = await getDependencies(ctx, {
64-
rootPath: tmpdir,
65-
manifestPath: await checkoutFile(ctx, 'HEAD', 'package.json', tmpdir),
66-
lockfilePath: await checkoutFile(ctx, 'HEAD', 'yarn.lock', tmpdir),
67-
});
68-
69-
const dependencyNames = dependencies.getDepPkgs().map((pkg) => pkg.name);
70-
expect(dependencyNames).toEqual(
71-
expect.arrayContaining([
72-
...Object.keys(packageJson.dependencies),
73-
...Object.keys(packageJson.devDependencies),
74-
])
75-
);
76-
});
77-
7860
it('should handle historic files', async () => {
7961
8062
const commit = 'e61c2688597a6fda61a7057c866ebfabde955784';
@@ -128,7 +110,7 @@ describe('getDependencies', () => {
128110
// ...
129111
])
130112
);
131-
});
113+
}, 15_000); // Increase test timeout to account for I/O in CI
132114

133115
it('should bail if the lock file is too large to parse', async () => {
134116
statSync.mockReturnValue({ size: MAX_LOCK_FILE_SIZE + 1000 });

0 commit comments

Comments
 (0)