Project

General

Profile

action #69205

Implement mocks for javascript in unit tests

Added by cdywan 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2020-07-22
Due date:
% Done:

0%

Estimated time:
Difficulty:

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

History

#1 Updated by okurz 9 months 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.

Also available in: Atom PDF