-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to React Native 0.72.17 #267
base: main
Are you sure you want to change the base?
Changes from 13 commits
6e84f2a
ea134fe
3038b83
273198a
118069b
4f05779
7fcc156
755f17c
076b8d9
ee31df8
9b35877
a081c5b
0be03e6
7f42007
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
commitlint --edit $1 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarn lint | ||
yarn typescript |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in this file happen automatically when running |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { isEnum } from '../helpers'; | ||
|
||
describe('isEnum function', () => { | ||
enum TestEnum { | ||
ValueA = 'A', | ||
ValueB = 'B', | ||
ValueC = 'C', | ||
} | ||
|
||
it('should return true for a valid enum value', () => { | ||
expect(isEnum(TestEnum, 'A')).toBe(true); | ||
expect(isEnum(TestEnum, 'B')).toBe(true); | ||
expect(isEnum(TestEnum, 'C')).toBe(true); | ||
}); | ||
|
||
it('should return false for an invalid enum value', () => { | ||
expect(isEnum(TestEnum, 'D')).toBe(false); | ||
expect(isEnum(TestEnum, 'E')).toBe(false); | ||
expect(isEnum(TestEnum, '')).toBe(false); | ||
expect(isEnum(TestEnum, 'ValueB')).toBe(false); | ||
}); | ||
|
||
it('should handle non-string inputs gracefully', () => { | ||
expect(isEnum(TestEnum, null as any)).toBe(false); | ||
expect(isEnum(TestEnum, undefined as any)).toBe(false); | ||
expect(isEnum(TestEnum, 123 as any)).toBe(false); | ||
}); | ||
}); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
"allowUnreachableCode": false, | ||
"allowUnusedLabels": false, | ||
"esModuleInterop": true, | ||
"importsNotUsedAsValues": "error", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deprecated in the next version of |
||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react", | ||
"lib": ["esnext"], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the new .husky/pre-commit files do the same thing that this used to: