/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ // eslint-disable-next-line import/no-unresolved const {transform} = require('../babel-transformer/lib/transform-jest'); const isFB = require('./isFB'); if (isFB && process.env.FLIPPER_FB === undefined) { process.env.FLIPPER_FB = 'true'; } module.exports = { process(src, filename, config, options) { return transform({ src, filename, config, options: {...options, isTestRunner: true}, }); }, };