Skip to content

Commit

Permalink
use maxWorkers=2 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpavon committed Jul 8, 2018
1 parent a847f69 commit d6537f5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
- checkout
- run: npm pack
- run: E2E_TEST='true' npx create-react-app ~/kitchensink/test-kitchensink --scripts-version=/home/circleci/kitchensink/jpavon-react-scripts-ts-0.7.0.tgz --internal-testing-template=/home/circleci/kitchensink/fixtures/kitchensink
- run: cd ~/kitchensink/test-kitchensink && yarn test
- run: cd ~/kitchensink/test-kitchensink && yarn test --maxWorkers=2
- run: cd ~/kitchensink/test-kitchensink && yarn e2e:dev
- run: cd ~/kitchensink/test-kitchensink && yarn e2e:build

Expand Down
1 change: 0 additions & 1 deletion fixtures/kitchensink/.babelrc
@@ -1,3 +1,2 @@
{
"plugins": ["babel-plugin-transform-es2015-modules-commonjs"]
}
3 changes: 0 additions & 3 deletions fixtures/kitchensink/.template.dependencies.json
@@ -1,8 +1,5 @@
{
"dependencies": {
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.46",
"@babel/polyfill": "7.0.0-beta.46",
"@babel/register": "7.0.0-beta.46",
"bootstrap": "4.1.0",
"normalize.css": "7.0.0",
"@types/prop-types": "15.5.3",
Expand Down
10 changes: 0 additions & 10 deletions fixtures/kitchensink/src/features/syntax/AsyncAwait.js
Expand Up @@ -17,16 +17,6 @@ async function load() {
];
}

/* eslint-disable */
// Regression test for https://github.com/facebook/create-react-app/issues/3055
const x = async (
/* prettier-ignore */
y: void
) => {
const z = await y;
};
/* eslint-enable */

export default class extends React.Component {
static propTypes = {
onReady: PropTypes.func.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions scripts/init.js
Expand Up @@ -50,10 +50,10 @@ module.exports = function(
if (process.env.E2E_TEST === 'true') {
appPackage.scripts = {
...appPackage.scripts,
"e2e:dev:test": "TEST_URL=http://localhost:3000 jest --config=./jest.e2e.config.js",
"e2e:dev:test": "TEST_URL=http://localhost:3000 jest --config=./jest.e2e.config.js --maxWorkers=2",
"e2e:dev": "start-server-and-test start http-get://localhost:3000 e2e:dev:test",
"serve": "react-scripts-ts build && serve -s build",
"e2e:build:test": "TEST_URL=http://localhost:5000 jest --config=./jest.e2e.config.js",
"e2e:build:test": "TEST_URL=http://localhost:5000 jest --config=./jest.e2e.config.js --maxWorkers=2",
"e2e:build": "start-server-and-test serve http://localhost:5000 e2e:build:test"
};

Expand Down

0 comments on commit d6537f5

Please sign in to comment.