atom-community / atom-community/atom-ide-base
Nuclide Fuzzy Native test is failing
- 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
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