Project

General

Profile

Actions

action #69205

open

Implement mocks for javascript in unit tests

Added by livdywan over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
QA (public, currently private due to #173521) - future
Start date:
2020-07-22
Due date:
% Done:

0%

Estimated time:

Description

Currently we have no good way of mocking our Javascript code in tests. This came up in gh#3277.

Suggestions:

  • We should consider modularizing our Javascript more to make testing easier.
  • QUnit is a unit test framework that can be run in node or as part of Selenium tests
  • sinonjs implements mocking facilities
Actions

Also available in: Atom PDF