From acaad4abcf32389a26cb4368c55f26f15adb1ef8 Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Mon, 23 Sep 2024 11:21:00 +0200 Subject: [PATCH] Update links part 2 --- .../versioned_docs/version-2.x/guide/testing.md | 4 ++-- packages/react-native-reanimated/scripts/validate-urls.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/docs-reanimated/versioned_docs/version-2.x/guide/testing.md b/packages/docs-reanimated/versioned_docs/version-2.x/guide/testing.md index 3f3a553b6fc5..61e8d7ac586e 100644 --- a/packages/docs-reanimated/versioned_docs/version-2.x/guide/testing.md +++ b/packages/docs-reanimated/versioned_docs/version-2.x/guide/testing.md @@ -105,8 +105,8 @@ test('stop in a middle of animation', () => { More example tests you can see in our repository -- [SharedValue.test.js](https://github.com/software-mansion/react-native-reanimated/blob/Reanimated2/__tests__/SharedValue.test.tsx) -- [Animation.test.js](https://github.com/software-mansion/react-native-reanimated/blob/Reanimated2/__tests__/Animation.test.tsx) +- [SharedValue.test.js](https://github.com/software-mansion/react-native-reanimated/blob/Reanimated2/__tests__/SharedValue.test.js) +- [Animation.test.js](https://github.com/software-mansion/react-native-reanimated/blob/Reanimated2/__tests__/Animation.test.js) ## Recommended testing library diff --git a/packages/react-native-reanimated/scripts/validate-urls.js b/packages/react-native-reanimated/scripts/validate-urls.js index 679425e41180..58e1db43760a 100644 --- a/packages/react-native-reanimated/scripts/validate-urls.js +++ b/packages/react-native-reanimated/scripts/validate-urls.js @@ -27,7 +27,7 @@ const extensions = [ const ignoredDirectories = ['node_modules', 'Pods', 'lib', 'build', 'cypress']; const urlRegex = - /\b((http|https):\/\/?)[^\s<>[\]`]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))(?[\]`]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))(? m[0]); urls = urls.filter((url) => !/({|})/.test(url)); return urls.length > 0 - ? urls.map((url) => ({ file: resource, url: url })) + ? urls.map((url) => ({ file: resource, url })) : []; } else { return []; @@ -69,7 +69,8 @@ function validUrls(data) { if ( currentData.url.includes('twitter.com') || // redirect issue currentData.url.includes('blog.swmansion.com') || // authorization issue - currentData.url.includes('opensource.org') // request from GitHub actions probably blocked + currentData.url.includes('opensource.org') || // request from GitHub actions probably blocked + currentData.url.includes('good+first+issue') // sometimes we don't have any issues with this label ) { index++; sendRequest();