From f6da2d69dd8ac8f94b4f37b75e214cdbeba9adb1 Mon Sep 17 00:00:00 2001 From: gracefullight Date: Sun, 20 Oct 2024 14:49:04 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E2=9C=A8=20jest=20config=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/country-tracker/jest.config.ts | 11 +++++++++++ apps/country-tracker/package.json | 3 --- turbo/generators/templates/native/jest.config.ts | 11 +++++++++++ turbo/generators/templates/native/package.json | 3 --- 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 apps/country-tracker/jest.config.ts create mode 100644 turbo/generators/templates/native/jest.config.ts diff --git a/apps/country-tracker/jest.config.ts b/apps/country-tracker/jest.config.ts new file mode 100644 index 0000000..b6df2a6 --- /dev/null +++ b/apps/country-tracker/jest.config.ts @@ -0,0 +1,11 @@ +import type { Config } from "jest"; + +const config: Config = { + verbose: true, + preset: "jest-expo", + transformIgnorePatterns: [ + "node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg)|@gluestack-ui/.*)", + ], +}; + +export default config; diff --git a/apps/country-tracker/package.json b/apps/country-tracker/package.json index d4a2589..08eb72d 100644 --- a/apps/country-tracker/package.json +++ b/apps/country-tracker/package.json @@ -13,9 +13,6 @@ "test:watch": "jest --watchAll", "web": "DARK_MODE=media expo start --web" }, - "jest": { - "preset": "jest-expo" - }, "dependencies": { "@expo/vector-icons": "^14.0.4", "@gluestack-ui/nativewind-utils": "^1.0.25", diff --git a/turbo/generators/templates/native/jest.config.ts b/turbo/generators/templates/native/jest.config.ts new file mode 100644 index 0000000..b6df2a6 --- /dev/null +++ b/turbo/generators/templates/native/jest.config.ts @@ -0,0 +1,11 @@ +import type { Config } from "jest"; + +const config: Config = { + verbose: true, + preset: "jest-expo", + transformIgnorePatterns: [ + "node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg)|@gluestack-ui/.*)", + ], +}; + +export default config; diff --git a/turbo/generators/templates/native/package.json b/turbo/generators/templates/native/package.json index e4ad42b..5bc4f65 100644 --- a/turbo/generators/templates/native/package.json +++ b/turbo/generators/templates/native/package.json @@ -13,9 +13,6 @@ "test:watch": "jest --watchAll", "web": "expo start --web" }, - "jest": { - "preset": "jest-expo" - }, "dependencies": { "@expo/vector-icons": "^14.0.3", "@react-navigation/native": "^6.0.2", From f527ccacbf105add96efe1fd826ce7c65e7da7f9 Mon Sep 17 00:00:00 2001 From: gracefullight Date: Sun, 20 Oct 2024 20:54:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=94=A7=20cla=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 62bbdce..3cc761d 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -27,5 +27,5 @@ jobs: custom-pr-sign-comment: "저는 CLA 문서를 읽었으며, CLA에 서명합니다." path-to-signatures: ".github/signatures/cla.json" path-to-document: "https://gist.github.com/gracefullight/041ebde610b7eea1dc21d11d40b7d663#file-infinite-loop-factory-cla-md" # e.g. a CLA or a DCO document - branch: "main" + branch: "chore/cla" allowlist: bot*