-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML Reporter: Fuzzy search using fuzzysort #1440
Conversation
f35939a
to
4434e5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @trentmwillis, when is the next release planned? |
We don't have regularly scheduled releases. That said, I can probably cut a new release this weekend assuming no other bugs/features come up that we'd want to wait for. Will likely be a patch release since this shouldn't affect how tests run at all. |
That's great. Thanks a lot for your help! |
This reverts commit 474a708.
@trentmwillis I see a new release was made, but I don't see this feature in the latest version. Any chance we could get this out? |
Follows-up 474a708, which added fuzzysort.js, which has an undocumented dependency on ES6 Map (whilst publishing its code in UMD/ES5-syntax). Restore IE 10 compat by adding a simple inline fallback (it only needs to work with strings). Also: * Restore ESLint settings on test/main/ to explicitly disable es6. This used to be the default (we enable es6:true on /src/ and /test/cli), but now that ESLint enables it by default we need to disable it to flag its use. * Fix the handful of syntaxes that were introduced and caused tests to fail as a result. Ref #1440.
Follows-up 474a708, which added fuzzysort.js, which has an undocumented dependency on ES6 Map (whilst publishing its code in UMD/ES5-syntax). Restore IE 10 compat by adding a simple inline fallback (it only needs to work with strings). Also: * Restore ESLint settings on test/main/ to explicitly disable es6. This used to be the default (we enable es6:true on /src/ and /test/cli), but now that ESLint enables it by default we need to disable it to flag its use. * Fix the handful of syntaxes that were introduced and caused tests to fail as a result. Ref #1440.
Thanks for the update @Krinkle :-). |
Sample implementation of: #1438 (
fuzzysort
-based).Below search results with different keywords (on
test/index.html
). The examples below use different values offuzzysort
'sthreshold
option.-10000
is the value used infuzzysort
's documentation: How To Go Fast · Performance Tips section.Searches with
threshold
undefined
(default)Search: "assert".
Search: "beforeEach".
Search: "promiseaware".
Search: "script".
Searches with
threshold
-10000
Search: "assert".
Search: "beforeEach".
Search: "promiseaware".
Search: "script".