Skip to content

Commit f2a58b2

Browse files
committed
Fix broken buildtools test
1 parent ec98f60 commit f2a58b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/buildtools/src/build/manifest/__tests__/manifest.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ describe('Test resolveSingleBundle', () => {
139139
it('Doesn\'t consider a non-directory a bundle', async () => {
140140
const path = `${testMocksDir}/bundles/tsconfig.json`;
141141
const resolved = await resolveSingleBundle(path);
142-
expect(resolved).toBeUndefined();
142+
expect(resolved).toMatchObject({
143+
severity: 'error',
144+
errors: [expect.any(Error)]
145+
});
143146

144147
const stats = await fs.stat(path);
145148
expect(stats.isDirectory()).toEqual(false);

0 commit comments

Comments
 (0)