Files
react/packages/react-fetch/src/__tests__/ReactFetchBrowser-test.js
T
Sebastian Markbåge 43e59f29d6 Delete Entries without Build Output from package.json and the build directory (#19029)
* Gate test

* Delete entrypoints without Build Outputs from package.json and build output

If an entry point exists in bundles.js but doesn't have any bundleTypes,
I delete that entry point file from the build directory. I also remove it
from the files field in package.json if it exists.

This allows us to remove bundles from being built in the stable release
channel.
2020-05-27 19:43:08 -07:00

27 lines
565 B
JavaScript

/**
* 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.
*
* @emails react-core
*/
'use strict';
describe('ReactFetchBrowser', () => {
let ReactFetchBrowser;
beforeEach(() => {
if (__EXPERIMENTAL__) {
ReactFetchBrowser = require('react-fetch');
}
});
// TODO: test something useful.
// @gate experimental
it('exports something', () => {
expect(ReactFetchBrowser.fetch).not.toBe(undefined);
});
});