-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Enable the unicorn/prefer-regexp-test
ESLint plugin rule
#15460
Enable the unicorn/prefer-regexp-test
ESLint plugin rule
#15460
Conversation
12ffd6a
to
20b9887
Compare
pass: !state.endsWith("FAIL"), | ||
// only one of the following three should ever be true | ||
unexpected: !!state.match(/^TEST-UNEXPECTED/), | ||
unexpected: state.startsWith("TEST-UNEXPECTED"), |
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.
Please note that changing the regular expression functions also triggered this rule.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/df83cb6ab777e69/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/089fbc7cc6927d0/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/df83cb6ab777e69/output.txt Total script time: 26.04 mins
Image differences available at: http://54.241.84.105:8877/df83cb6ab777e69/reftest-analyzer.html#web=eq.log |
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.
LGTM.
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/089fbc7cc6927d0/output.txt Total script time: 30.14 mins
|
Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md