Skip to content

Commit

Permalink
Exlude __data__ folder from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzalezg9 committed May 29, 2024
1 parent ee79952 commit 6127286
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)"
],
"testPathIgnorePatterns": [
"__data__"
],
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{js,jsx,ts,tsx}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ const MINUTE = 60000;
const HOUR = MINUTE * 60;

export const ES_LOCALE_TEST_SUITE = [
[0, "00:00"],
[MINUTE, "00:01"],
[2 * MINUTE, "00:02"],
[HOUR, "01:00"],
[2 * HOUR, "02:00"],
[12 * HOUR, "12:00"],
[13 * HOUR, "13:00"],
[23 * HOUR, "23:00"],
[24 * HOUR, "00:00"],
[new Date(0), "00:00"],
[new Date(MINUTE), "00:01"],
[new Date(2 * MINUTE), "00:02"],
[new Date(HOUR), "01:00"],
[new Date(2 * HOUR), "02:00"],
[new Date(12 * HOUR), "12:00"],
[new Date(13 * HOUR), "13:00"],
[new Date(23 * HOUR), "23:00"],
[new Date(24 * HOUR), "00:00"],
] as const;
export const EN_LOCALE_TEST_SUITE = [
[0, "12:00 AM"],
[MINUTE, "12:01 AM"],
[2 * MINUTE, "12:02 AM"],
[HOUR, "01:00 AM"],
[2 * HOUR, "02:00 AM"],
[12 * HOUR, "12:00 PM"],
[13 * HOUR, "01:00 PM"],
[23 * HOUR, "11:00 PM"],
[24 * HOUR, "12:00 AM"],
[new Date(0), "12:00 AM"],
[new Date(MINUTE), "12:01 AM"],
[new Date(2 * MINUTE), "12:02 AM"],
[new Date(HOUR), "01:00 AM"],
[new Date(2 * HOUR), "02:00 AM"],
[new Date(12 * HOUR), "12:00 PM"],
[new Date(13 * HOUR), "01:00 PM"],
[new Date(23 * HOUR), "11:00 PM"],
[new Date(24 * HOUR), "12:00 AM"],
] as const;

export const IS_DAY_TEST_SUITE = [
Expand Down

0 comments on commit 6127286

Please sign in to comment.