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

16 lines
429 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 jest-environment-node
* @jest-environment-options {"customExportConditions": ["special"]}
*/
import {fn} from 'fake-dual-dep';
test('returns correct message', () => {
expect(fn()).toBe('hello from special');
});