Bump dependencies (#7473)

This commit is contained in:
Ian Schmitz
2019-08-08 14:12:34 -07:00
committed by GitHub
parent cff4046a8b
commit 91c2673e59
15 changed files with 96 additions and 76 deletions

View File

@@ -1,10 +1,10 @@
{
"dependencies": {
"bootstrap": "4.1.1",
"jest": "24.7.1",
"node-sass": "4.8.3",
"bootstrap": "4.3.1",
"jest": "24.8.0",
"node-sass": "4.12.0",
"normalize.css": "7.0.0",
"prop-types": "15.5.6",
"test-integrity": "1.0.0"
"prop-types": "15.7.2",
"test-integrity": "2.0.1"
}
}

View File

@@ -9,11 +9,17 @@ import initDOM from './initDOM';
describe('Integration', () => {
describe('jsconfig.json/tsconfig.json', () => {
let doc;
afterEach(() => {
doc && doc.defaultView.close();
doc = undefined;
});
it('Supports setting baseUrl to src', async () => {
const doc = await initDOM('base-url');
doc = await initDOM('base-url');
expect(doc.getElementById('feature-base-url').childElementCount).toBe(4);
doc.defaultView.close();
});
});
});

View File

@@ -24,11 +24,11 @@ export const fetchFile = url => {
);
};
const fileResourceLoader = new class FileResourceLoader extends ResourceLoader {
const fileResourceLoader = new (class FileResourceLoader extends ResourceLoader {
fetch(href, options) {
return Promise.resolve(fetchFile(url.parse(href)));
}
}();
})();
if (!process.env.E2E_FILE && !process.env.E2E_URL) {
it.only('can run jsdom (at least one of "E2E_FILE" or "E2E_URL" environment variables must be provided)', () => {
@@ -63,6 +63,13 @@ export default feature =>
const { document } = window;
const cancelToken = setTimeout(() => {
// Cleanup jsdom instance since we don't need it anymore
window.close();
reject(`Timed out loading feature: ${feature}`);
}, 10000);
document.addEventListener(
'ReactFeatureDidMount',
() => resolve(document),
@@ -71,6 +78,8 @@ export default feature =>
document.addEventListener(
'ReactFeatureError',
() => {
clearTimeout(cancelToken);
// Cleanup jsdom instance since we don't need it anymore
window.close();

View File

@@ -10,10 +10,9 @@ import ReactDOM from 'react-dom';
describe('dynamic import', () => {
it('renders without crashing', async () => {
import('./DynamicImport').then(DynamicImport => {
const div = document.createElement('div');
ReactDOM.render(<DynamicImport />, div);
expect(div.textContent).toBe('Hello World!');
});
const DynamicImport = (await import('./DynamicImport')).default;
const div = document.createElement('div');
ReactDOM.render(<DynamicImport />, div);
expect(div.textContent).toBe('Hello World!');
});
});

View File

@@ -28,13 +28,13 @@
},
"types": "./lib/react-app.d.ts",
"dependencies": {
"@babel/core": "7.4.3",
"@svgr/webpack": "4.3.1",
"@babel/core": "7.5.5",
"@svgr/webpack": "4.3.2",
"@typescript-eslint/eslint-plugin": "1.13.0",
"@typescript-eslint/parser": "1.13.0",
"babel-eslint": "10.0.2",
"babel-jest": "^24.8.0",
"babel-loader": "8.0.5",
"babel-loader": "8.0.6",
"babel-plugin-named-asset-import": "^0.3.2",
"babel-preset-react-app": "^9.0.0",
"camelcase": "^5.2.0",
@@ -45,7 +45,7 @@
"eslint": "^6.1.0",
"eslint-config-react-app": "^4.0.1",
"eslint-loader": "2.2.1",
"eslint-plugin-flowtype": "3.12.1",
"eslint-plugin-flowtype": "3.13.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.14.3",
@@ -55,32 +55,32 @@
"html-webpack-plugin": "4.0.0-beta.5",
"identity-obj-proxy": "3.0.0",
"is-wsl": "^1.1.0",
"jest": "24.7.1",
"jest": "24.8.0",
"jest-environment-jsdom-fourteen": "0.1.0",
"jest-resolve": "24.7.1",
"jest-watch-typeahead": "0.3.0",
"jest-resolve": "24.8.0",
"jest-watch-typeahead": "0.3.1",
"mini-css-extract-plugin": "0.5.0",
"optimize-css-assets-webpack-plugin": "5.0.1",
"pnp-webpack-plugin": "1.2.1",
"optimize-css-assets-webpack-plugin": "5.0.3",
"pnp-webpack-plugin": "1.5.0",
"postcss-flexbugs-fixes": "4.1.0",
"postcss-loader": "3.0.0",
"postcss-normalize": "7.0.1",
"postcss-preset-env": "6.6.0",
"postcss-preset-env": "6.7.0",
"postcss-safe-parser": "4.0.1",
"react-app-polyfill": "^1.0.1",
"react-dev-utils": "^9.0.1",
"resolve": "1.10.0",
"resolve-url-loader": "3.0.1",
"resolve": "1.12.0",
"resolve-url-loader": "3.1.0",
"sass-loader": "7.1.0",
"semver": "6.0.0",
"style-loader": "0.23.1",
"terser-webpack-plugin": "1.2.3",
"semver": "6.3.0",
"style-loader": "1.0.0",
"terser-webpack-plugin": "1.4.1",
"ts-pnp": "1.1.2",
"url-loader": "2.0.1",
"webpack": "4.35.0",
"url-loader": "2.1.0",
"webpack": "4.39.1",
"webpack-dev-server": "3.2.1",
"webpack-manifest-plugin": "2.0.4",
"workbox-webpack-plugin": "4.2.0"
"workbox-webpack-plugin": "4.3.1"
},
"devDependencies": {
"react": "^16.8.4",

View File

@@ -5,8 +5,11 @@
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app">
<link rel="apple-touch-icon" href="logo192.png">
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

View File

@@ -5,8 +5,11 @@
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app">
<link rel="apple-touch-icon" href="logo192.png">
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/