text: /**
   * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *
   * @flow
   */
  'use strict';
  
  import {json as runWithJson} from '../runJest';
  
  import testFixturePackage from '../test-environment/package.json';
  
  it('respects testEnvironment docblock', () => {
    expect(testFixturePackage.jest.testEnvironment).toEqual('node');
  
    const {json: result} = runWithJson('test-environment');
  
    expect(result.success).toBe(true);
    expect(result.numTotalTests).toBe(1);
  });
  