Skip to content

Commit

Permalink
feat: ✨ jest config 타입스크립트화
Browse files Browse the repository at this point in the history
  • Loading branch information
gracefullight committed Oct 20, 2024
1 parent 83cdd4a commit f6da2d6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
11 changes: 11 additions & 0 deletions apps/country-tracker/jest.config.ts
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 0 additions & 3 deletions apps/country-tracker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions turbo/generators/templates/native/jest.config.ts
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 0 additions & 3 deletions turbo/generators/templates/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f6da2d6

Please sign in to comment.