atom-community / atom-community/atom-ide-base

Nuclide Fuzzy Native test is failing

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Tests
Dominant language
JavaScript
Stars
45
Forks
10
PR merge metrics
No merged PRs in 30d

Description

```js
FAIL nuclide-fuzzy-native/__tests__/fuzzy-native-test.js
● fuzzy-native › can be required

expect(received).toEqual(expected) // deep equality

- Expected - 1
+ Received + 2

Array [
Object {
- "score": 1,
+ "matchIndexes": Array [],
+ "score": 0,
"value": "test",
},
]

17 | // The fallback uses a different scoring mechanism, so this will fail
18 | // if the native module failed to load.
> 19 | expect(matcher.match('test')).toEqual([{value: 'test', score: 1}]);
| ^
20 | });
21 | });
22 |

at Object. (../nuclide/nuclide-fuzzy-native/__tests__/fuzzy-native-test.js:19:5)

```

Contributor guide

Open the contributing guide

Research direction

Start by running nuclide-fuzzy-native/__tests__/fuzzy-native-test.js and inspect the failing require behavior described in the report. Trace why the native module is not loading instead of using the fallback, then confirm the test passes with the expected value and score.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.