hunk.code_window: module.exports = function(api) {
     api.cache(true);
     return {
       presets: ['babel-preset-expo'],
       plugins: ['@babel/plugin-transform-runtime'],
     };
   };
hunk.labels: keep keep keep keep replace keep keep
hunk.file_path: apps/test-suite/babel.config.js
hunk.type: replace
file: /**
   * Copyright (c) 2015-present, Facebook, Inc.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *
   * @format
   * @emails oncall+react_native
   */
  
  'use strict';
  
  const setNormalizedColorAlpha = require('../setNormalizedColorAlpha');
  const normalizeColor = require('../../Color/normalizeColor');
  
  describe('setNormalizedColorAlpha', function() {
    it('should adjust the alpha of the color passed in', function() {
      expect(setNormalizedColorAlpha(0xffffffff, 0.4)).toBe(0xffffff66);
      expect(setNormalizedColorAlpha(0x204080ff, 0.6)).toBe(0x20408099);
    });
  
    it('should clamp invalid input', function() {
      expect(setNormalizedColorAlpha(0xffffffff, 1.5)).toBe(0xffffffff);
      expect(setNormalizedColorAlpha(0xffffffff, -1)).toBe(0xffffff00);
    });
  
    it("should ignore the color's original alpha", function() {
      expect(setNormalizedColorAlpha(0x204080aa, 0.8)).toBe(0x204080cc);
    });
  
    it('should return the original color when alpha is unchanged', function() {
      const originalColor = normalizeColor('blue');
      expect(setNormalizedColorAlpha(originalColor, 1)).toBe(originalColor);
    });
  });
  