Skip to content

Commit

Permalink
Exclude tests from bundling (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux authored Sep 6, 2024
1 parent 1666db3 commit 93d6d11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// limitations under the License.
//
const { getDefaultConfig } = require("expo/metro-config");
const exclusionList = require('metro-config/src/defaults/exclusionList');

module.exports = (() => {
// eslint-disable-next-line no-undef
Expand All @@ -29,6 +30,7 @@ module.exports = (() => {
...resolver,
assetExts: resolver.assetExts.filter((ext) => ext !== "svg"),
sourceExts: [...resolver.sourceExts, "svg"],
blacklistRE: exclusionList([/.*\.test\.tsx$/]),
};

return config;
Expand Down

0 comments on commit 93d6d11

Please sign in to comment.