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* 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",