diff --git a/packages/aws-cdk/test/account-cache.test.ts b/packages/aws-cdk/test/account-cache.test.ts index 0c8334136c6f1..530edfd5e7bfb 100644 --- a/packages/aws-cdk/test/account-cache.test.ts +++ b/packages/aws-cdk/test/account-cache.test.ts @@ -118,7 +118,7 @@ test('cache pretends to be empty if cache file does not contain JSON', async() = try { await fs.writeFile(cacheFile, ''); - await expect(cache.get('abc')).resolves.toEqual(undefined); + await expect(cache.get('abc')).resolves.toBeUndefined(); } finally { await nukeCache(cacheDir); }