Files
jest/e2e/resolve-conditions/__tests__/custom-env-override-export-conditions.test.mjs

16 lines
441 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @jest-environment <rootDir>/custom-env.js
* @jest-environment-options {"customExportConditions": ["react-native"]}
*/
import {fn} from 'fake-dual-dep';
test('returns correct message', () => {
expect(fn()).toBe('hello from react-native');
});