Project

General

Profile

Actions

action #69205

open

Implement mocks for javascript in unit tests

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

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
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