about summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
authorAryan Goharzad <arrygoo@gmail.com>2023-01-19 13:53:11 -0500
committerGitHub <noreply@github.com>2023-01-19 12:53:11 -0600
commitf10a8308d9f6bfb907c8a2458cbf78b4cfad88d2 (patch)
tree0cb50ba6736ea67773e76f9000d07095a654bb6d /package.json
parent9230d52ff596056429a773298b2728619afe3432 (diff)
downloadvoidsky-f10a8308d9f6bfb907c8a2458cbf78b4cfad88d2.tar.zst
Fixes youtube embed issues (#50)
* fixes youtube embed

* move extractMetaHtml test to its own file

* tests cleanup

* Add fallback for youtube meta data

* lint

* Check for youtube in the url domain

* use hostname instead of full url to check for link domain

* checks only for domain
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/package.json b/package.json
index 109fb3279..fd2f4b987 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
     "start": "react-native start",
     "clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
     "test": "jest",
+    "test-watch": "jest --watchAll",
     "test-ci": "jest --ci --forceExit --reporters=default --reporters=jest-junit",
     "test-coverage": "jest --coverage",
     "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
@@ -114,6 +115,7 @@
     "transformIgnorePatterns": [
       "node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|rollbar-react-native|@fortawesome|@react-native|@react-navigation)"
     ],
+    "modulePathIgnorePatterns": ["__tests__\/.*\/__mocks__"],
     "coveragePathIgnorePatterns": [
       "<rootDir>/node_modules/",
       "<rootDir>/src/platform",