kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
13 wiersze
362 B
JavaScript
13 wiersze
362 B
JavaScript
const path = require('path');
|
|
|
|
// Custom Jest asset transformer
|
|
// https://jestjs.io/docs/code-transformation#writing-custom-transformers
|
|
// Tries to do basically what Webpack does
|
|
module.exports = {
|
|
process(src, filename, config, options) {
|
|
return {
|
|
code: `module.exports = "https://soapbox.test/assets/${path.basename(filename)}";`,
|
|
};
|
|
},
|
|
};
|