diff --git a/tools/screenshot-test/functions/index.js b/tools/screenshot-test/functions/index.js index 6d468ed3ee1f..347c69d4b574 100644 --- a/tools/screenshot-test/functions/index.js +++ b/tools/screenshot-test/functions/index.js @@ -14,4 +14,9 @@ require('ts-node').register({ project: path.join(__dirname, 'tsconfig.json') }); -require('./screenshot-functions'); +const functionExports = require('./screenshot-functions'); + +// Re-export every firebase function from TypeScript +Object.keys(functionExports).forEach(fnName => { + module.exports[fnName] = functionExports[fnName]; +});