This also required upgrading Jest to version 24 since I was getting this error:

> TypeError: Cannot read property 'cwd' of undefined
This commit is contained in:
Armen Zambrano G 2019-04-16 14:40:16 -04:00
Родитель 3103993abd
Коммит 0167a02605
6 изменённых файлов: 479 добавлений и 1089 удалений

Просмотреть файл

@ -1,27 +1,27 @@
const airbnb = require('@neutrinojs/airbnb');
const react = require('@neutrinojs/react');
const jest = require('@neutrinojs/jest');
const copy = require('@neutrinojs/copy');
module.exports = {
options: {
root: __dirname,
},
use: [
'@neutrinojs/airbnb',
[
'@neutrinojs/react',
{
html: {
title: 'bugzilla-dashboard'
},
env: {
ALTERNATIVE_AUTH: false,
},
}
],
'@neutrinojs/jest',
[
'@neutrinojs/copy', {
airbnb(),
react({
html: {
title: 'bugzilla-dashboard'
},
env: {
ALTERNATIVE_AUTH: false,
},
}),
jest(),
copy({
patterns: [
{ from: 'src/static/triageOwners.json', to: 'triageOwners.json' },
],
},
]
})
]
};

Просмотреть файл

@ -43,15 +43,15 @@
"typeface-roboto": "^0.0.54"
},
"devDependencies": {
"@neutrinojs/airbnb": "^9.0.0-beta.1",
"@neutrinojs/copy": "^9.0.0-beta.1",
"@neutrinojs/jest": "^9.0.0-beta.1",
"@neutrinojs/react": "^9.0.0-beta.1",
"@neutrinojs/airbnb": "^9.0.0-rc.1",
"@neutrinojs/copy": "^9.0.0-rc.1",
"@neutrinojs/jest": "^9.0.0-rc.1",
"@neutrinojs/react": "^9.0.0-rc.1",
"eslint": "^5",
"husky": "^1.2.0",
"jest": "^23",
"jest": "^24",
"lint-staged": "^8.1.0",
"neutrino": "^9.0.0-beta.1",
"neutrino": "^9.0.0-rc.1",
"node-fetch": "^2.3.0",
"react-test-renderer": "^16.6.3",
"webpack": "^4",

Просмотреть файл

@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Route } from 'react-router-dom';
const PropsRoute = ({ component, ...props }) => (
@ -8,4 +9,8 @@ const PropsRoute = ({ component, ...props }) => (
/>
);
PropsRoute.propTypes = {
component: PropTypes.string.isRequired,
};
export default PropsRoute;

Просмотреть файл

@ -1,4 +1,5 @@
import React, { Component, Suspense } from 'react';
import PropTypes from 'prop-types';
import { Switch } from 'react-router-dom';
import { withStyles } from '@material-ui/core/styles';
import Spinner from '@mozilla-frontend-infra/components/Spinner';
@ -289,4 +290,9 @@ class MainContainer extends Component {
}
}
MainContainer.propTypes = {
classes: PropTypes.shape().isRequired,
location: PropTypes.shape().isRequired,
};
export default withStyles(styles)(MainContainer);

Просмотреть файл

@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import BugzillaComponents from '../../components/BugzillaComponents';
@ -20,4 +21,8 @@ const Teams = ({ classes, ...rest }) => (
</React.Fragment>
);
Teams.propTypes = {
classes: PropTypes.shape().isRequired,
};
export default withStyles(styles)(Teams);

1506
yarn.lock

Разница между файлами не показана из-за своего большого размера Загрузить разницу