Project

General

Profile

Actions

action #69205

open

Implement mocks for javascript in unit tests

Added by livdywan over 3 years ago. Updated over 3 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 #1

Updated by okurz over 3 years ago

  • Category set to Feature requests
  • Priority changed from Normal to Low
  • Target version set to future

not sure if mocking in javascript is something that we really need. I would rather favor to have less logic in javascript itself in our setup.

Actions

Also available in: Atom PDF