15 строки
491 B
JavaScript
15 строки
491 B
JavaScript
require('jest-date-mock');
|
|
|
|
// Those objects are available globally in the JS source files.
|
|
global.$ = global.jQuery = require('jquery');
|
|
global._ = require('lodash');
|
|
|
|
// This helper is also available globally. We create a naive implementation for
|
|
// testing purposes.
|
|
global.gettext = (str) => str;
|
|
|
|
// This is a shared lib that is available everywhere on the site.
|
|
const { format, template } = require('../../static/js/lib/format.js');
|
|
global.format = format;
|
|
global.template = template;
|