Skip to content

Commit

Permalink
Add support for src directory in react-native
Browse files Browse the repository at this point in the history
Differential Revision: D52875999

fbshipit-source-id: bd772f5a8d706a911c403e0942e7c631ce837dc8
  • Loading branch information
rubennorte authored and facebook-github-bot committed Jan 20, 2024
1 parent a58ec07 commit 5f5964c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ module.exports = {
},
},
{
files: ['packages/react-native/Libraries/**/*.js'],
files: [
'packages/react-native/Libraries/**/*.js',
'packages/react-native/src/**/*.js',
],
rules: {
'@react-native/platform-colors': 2,
'@react-native/specs/react-native-modules': 2,
Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ module.exports = {
'denodeify',
],
testEnvironment: 'node',
collectCoverageFrom: ['packages/react-native/Libraries/**/*.js'],
collectCoverageFrom: [
'packages/react-native/Libraries/**/*.js',
'packages/react-native/src/**/*.js',
],
coveragePathIgnorePatterns: [
'/__tests__/',
'/vendor/',
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"sdks/hermes-engine",
"sdks/hermesc",
"settings.gradle.kts",
"src",
"template.config.js",
"template",
"!template/node_modules",
Expand Down

0 comments on commit 5f5964c

Please sign in to comment.