accounts-frontend/jest/__mocks__/intlMock.js

23 lines
613 B
JavaScript
Raw Normal View History

2019-11-27 13:39:51 +05:30
/* eslint-env node */
const path = require("path");
const { transform } = require("../../webpack-utils/intl-loader");
module.exports = {
/**
* @param {string} src - transformed module source code
* @param {string} filename - transformed module file path
* @param {{[key: string]: any}} config - jest config
* @param {{instrument: boolean}} options - additional options
*
* @return {string}
*/
// eslint-disable-next-line no-unused-vars
process(src, filename, config, options) {
return transform(
src,
filename,
path.resolve(`${__dirname}/../../..`)
);
}
};