From 879555adfd0f9662064d96a9c61b5926e45283ca Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Sat, 7 Jun 2025 22:53:57 -0700 Subject: [PATCH] build: Don't treat __fixture__ files as test suites Jest was failing tests because a fixture file didn't contain at least one test. Adjusting the test selection regex filters the test file selection more accurately. --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index 8eb675e..486d616 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,4 @@ module.exports = { preset: 'react-native', + testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'], }; -- 2.51.2