fix coverage patterns (#53881)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53881

Changelog: [Internal]
To make sure that coverage is insertect correctly when run in different metro setup where patterns do not match perfectly, we need to add glob prefix

Reviewed By: sammy-SC

Differential Revision: D82968565

fbshipit-source-id: c2676ef4c774411938039fc5b98a3b953f6ec916
This commit is contained in:
Andrew Datsenko
2025-09-22 10:48:45 -07:00
committed by Facebook GitHub Bot
parent b10faf6c02
commit 2e4da10b52
@@ -32,12 +32,12 @@ const transform: BabelTransformer['transform'] = (
require.resolve('babel-plugin-istanbul'),
{
include: [
'packages/react-native/Libraries/**/*.js',
'packages/react-native/src/**/*.js',
'packages/virtualized-lists/**/*.js',
'**/packages/react-native/Libraries/**/*.js',
'**/packages/react-native/src/**/*.js',
'**/packages/virtualized-lists/**/*.js',
],
exclude: [
'packages/react-native/Libraries/Renderer/**',
'**/packages/react-native/Libraries/Renderer/**',
'**/__tests__/**',
],
},