Skip to content

[Snyk] Fix for 3 vulnerabilities #256

[Snyk] Fix for 3 vulnerabilities

[Snyk] Fix for 3 vulnerabilities #256

Triggered via pull request November 20, 2024 13:13
Status Failure
Total duration 3m 1s
Artifacts

build.yml

on: pull_request
install-and-test
2m 51s
install-and-test
Fit to window
Zoom out
Zoom in

Annotations

10 errors
<If /> > Should render and match the snapshot: app/components/atoms/If/tests/index.test.js#L15
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/If/tests/index.test.js:16:31) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
<If /> > If should render the child component when props.condition = true: app/components/atoms/If/tests/index.test.js#L20
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/If/tests/index.test.js:29:46) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
<If /> > If should render the component passed on otherwise when props.condition = false: app/components/atoms/If/tests/index.test.js#L38
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/If/tests/index.test.js:48:46) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
<LanguageProvider /> container tests > should render its children: app/components/atoms/LanguageProvider/tests/index.test.js#L8
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at renderFunction (/home/runner/work/react-native-template/react-native-template/app/utils/testUtils.js:13:3) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/LanguageProvider/tests/index.test.js:14:40) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
<ConnectedLanguageProvider /> container tests > should render the default language messages: app/components/atoms/LanguageProvider/tests/index.test.js#L22
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/LanguageProvider/tests/index.test.js:23:35) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
<T /> > should render and match the snapshot: app/components/atoms/T/tests/index.test.js#L11
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at renderFunction (/home/runner/work/react-native-template/react-native-template/app/utils/testUtils.js:13:3) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/T/tests/index.test.js:12:42) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
<T /> > should contain 1 t: app/components/atoms/T/tests/index.test.js#L16
Error: Trying to detect host component names triggered the following error: /home/runner/work/react-native-template/react-native-template/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) 37 | 38 | type Registry<TEventToArgsMap: {...}> = { > 39 | [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>, | ^ 40 | }; 41 | 42 | /** There seems to be an issue with your configuration that prevents React Native Testing Library from working correctly. Please check if you are using compatible versions of React Native and React Native Testing Library. at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:54:11) at detectHostComponentNames (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/helpers/host-component-names.tsx:27:30) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:48:40) at renderInternal (/home/runner/work/react-native-template/react-native-template/node_modules/@testing-library/react-native/src/render.tsx:29:10) at renderFunction (/home/runner/work/react-native-template/react-native-template/app/utils/testUtils.js:13:3) at Object.<anonymous> (/home/runner/work/react-native-template/react-native-template/app/components/atoms/T/tests/index.test.js:17:49) at Promise.then.completed (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/react-native-template/react-native-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
install-and-test
Error: The process '/usr/local/bin/yarn' failed with exit code 1 Error: The process '/usr/local/bin/yarn' failed with exit code 1 at wd._setResult (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.2.9/dist/index.js:21:19186) at wd.CheckComplete (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.2.9/dist/index.js:21:18773) at ChildProcess.<anonymous> (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.2.9/dist/index.js:21:17765) at ChildProcess.emit (node:events:517:28) at maybeClose (node:internal/child_process:1098:16) at ChildProcess._handle.onexit (node:internal/child_process:303:5)
install-and-test
Jest coverage report action failed
install-and-test
Process completed with exit code 1.