Skip to content

feat: add unit tests #19

feat: add unit tests

feat: add unit tests #19

Triggered via pull request April 22, 2024 10:06
Status Failure
Total duration 2m 38s
Billable time 8m
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 15 warnings
build-library
Process completed with exit code 1.
lint: example/src/screens/HomeScreen.tsx#L12
Binding element 'navigation' implicitly has an 'any' type.
lint: src/component/ServerComponent.tsx#L27
Argument of type 'unknown' is not assignable to parameter of type 'SetStateAction<Error | null>'.
lint: src/component/createServerComponent.tsx#L100
'e' is of type 'unknown'.
lint: src/utils/utils.ts#L16
Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
lint
Process completed with exit code 2.
build-android
react-native-server-component-example#build:android: command (/home/runner/work/react-native-server-component/react-native-server-component/example) /tmp/xfs-82ccc006/yarn run build:android exited (1)
build-android
Process completed with exit code 1.
build-ios
react-native-server-component-example#build:ios: command (/Users/runner/work/react-native-server-component/react-native-server-component/example) /private/var/folders/z4/sx941vhj3jd2jb9_gwftzctc0000gn/T/xfs-372b63e3/yarn run build:ios exited (1)
build-ios
Process completed with exit code 1.
build-library
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint: example/server/Mocks/TranspiledExample.js#L5
["default"] is better written in dot notation
lint: example/server/Mocks/TranspiledExample.js#L5
Expected 'undefined' and instead saw 'void'
lint: example/server/Mocks/TranspiledExample.js#L11
Expected 'undefined' and instead saw 'void'
lint: example/server/Mocks/TranspiledExample.js#L15
Expected literal to be on the right side of !=
lint: example/server/Mocks/TranspiledExample.js#L15
Expected '!==' and instead saw '!='
lint: example/server/Mocks/TranspiledExample.js#L18
'_getRequireWildcardCache' is a function
lint: example/server/Mocks/TranspiledExample.js#L18
'_getRequireWildcardCache' is already declared in the upper scope on line 14 column 10
lint: example/server/Mocks/TranspiledExample.js#L18
'e' is already declared in the upper scope on line 14 column 35
lint: example/server/Mocks/TranspiledExample.js#L24
Expected literal to be on the right side of ===
lint: example/server/Mocks/TranspiledExample.js#L24
Expected literal to be on the right side of !=
build-android
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/setup-java@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build-ios
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.