From 93d6d1194509108710a0174e249dd44a8883a38c Mon Sep 17 00:00:00 2001 From: Zwifi Date: Fri, 6 Sep 2024 09:24:42 +0200 Subject: [PATCH] Exclude tests from bundling (#43) --- metro.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metro.config.js b/metro.config.js index 6a417c4..1d329ca 100644 --- a/metro.config.js +++ b/metro.config.js @@ -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 @@ -29,6 +30,7 @@ module.exports = (() => { ...resolver, assetExts: resolver.assetExts.filter((ext) => ext !== "svg"), sourceExts: [...resolver.sourceExts, "svg"], + blacklistRE: exclusionList([/.*\.test\.tsx$/]), }; return config;