mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
@hgiesel the reason no files were being found is because Jest ignores symlinks by default. The Bazel example includes a patch we can use to work around it, and Jest plan to add symlink support in a future update. https://github.com/bazelbuild/rules_nodejs/blob/stable/examples/jest/patches/jest-haste-map%2B24.9.0.patch https://github.com/facebook/jest/pull/9351
16 lines
No EOL
594 B
Diff
16 lines
No EOL
594 B
Diff
diff --git a/node_modules/jest-haste-map/build/crawlers/node.js b/node_modules/jest-haste-map/build/crawlers/node.js
|
|
index 23985ae..a728a9a 100644
|
|
--- a/node_modules/jest-haste-map/build/crawlers/node.js
|
|
+++ b/node_modules/jest-haste-map/build/crawlers/node.js
|
|
@@ -166,7 +166,11 @@ function find(roots, extensions, ignore, callback) {
|
|
|
|
function findNative(roots, extensions, ignore, callback) {
|
|
const args = Array.from(roots);
|
|
+ args.push('(');
|
|
args.push('-type', 'f');
|
|
+ args.push('-o');
|
|
+ args.push('-type', 'l');
|
|
+ args.push(')');
|
|
|
|
if (extensions.length) {
|
|
args.push('(');
|