Page MenuHomePhabricator

Implement JS testing in CheckUser
Closed, ResolvedPublic

Description

There are several important JS files in CheckUser. Testing that these work as expected is an important step towards ensuring reliability of the code.

QUnit can be used to test these files without relying on end-to-end browser testing (such as selenium) which adds overhead.

Acceptance criteria
  • Have QUnit testing setup and ready for tests to be added in future commits.

Event Timeline

Change 953309 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Add jest to package.json and add jest to CI

https://gerrit.wikimedia.org/r/953309

I intend to look at testing the Client Hints module using jest.

Change 955322 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Add QUnit test structure to CheckUser

https://gerrit.wikimedia.org/r/955322

Change 955322 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Add QUnit test structure to CheckUser

https://gerrit.wikimedia.org/r/955322

Change 955322 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add QUnit test structure to CheckUser

https://gerrit.wikimedia.org/r/955322

Change 953309 abandoned by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] Add jest to package.json and add jest to CI

Reason:

https://gerrit.wikimedia.org/r/953309