mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-23 00:28:12 +00:00
13 lines
386 B
JavaScript
13 lines
386 B
JavaScript
/**
|
|
* This file is needed to hijack asset imports so that test files don't attempt
|
|
* to import them as JavaScript modules.
|
|
* See https://github.com/facebook/jest/issues/2663#issuecomment-317109798
|
|
*/
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
process(src, filename, config, options) {
|
|
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
|
|
},
|
|
};
|