Skip to content

Commit

Permalink
fix buil compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leimonio committed Aug 8, 2023
1 parent 2b1191f commit 75c8a52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('generateNodeModulesPattern()', () => {
});

it('should return an array with 2 patterns', () => {
expect(patterns).toHaveLength(2);
expect((patterns || []).length).toEqual(2);
expect(patterns).toEqual([
'^(.+?[\\/]node_modules[\\/](?!(@my-org[\\/]my-scope.components))(@.+?[\\/])?.+?)[\\/]',
'^(.+?[\\/]node_modules[\\/](?!(\\.pnpm[\\/](.*[+\\/])?@my-org\\+my-scope.components.*))(@.+?[\\/])?.+?)[\\/]',
Expand Down

0 comments on commit 75c8a52

Please sign in to comment.