diff --git a/packages/@aws-cdk/aws-lambda-python/test/bundling.test.ts b/packages/@aws-cdk/aws-lambda-python/test/bundling.test.ts index c8a7ed242c359..1ee94a552e321 100644 --- a/packages/@aws-cdk/aws-lambda-python/test/bundling.test.ts +++ b/packages/@aws-cdk/aws-lambda-python/test/bundling.test.ts @@ -158,6 +158,8 @@ test('Bundling a function with pipenv dependencies', () => { expect(files).toContain('index.py'); expect(files).toContain('Pipfile'); expect(files).toContain('Pipfile.lock'); + // Contains hidden files. + expect(files).toContain('.gitignore'); // Exported during the bundling process. expect(files).toContain('requirements.txt'); }); @@ -185,6 +187,8 @@ test('Bundling a function with poetry dependencies', () => { expect(files).toContain('index.py'); expect(files).toContain('pyproject.toml'); expect(files).toContain('poetry.lock'); + // Contains hidden files. + expect(files).toContain('.gitignore'); // Exported during the bundling process. expect(files).toContain('requirements.txt'); });