mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* 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.
27 lines
565 B
JavaScript
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);
|
|
});
|
|
});
|