Skip to content

Commit d6537f5

Browse files
committed
use maxWorkers=2 for tests
1 parent a847f69 commit d6537f5

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- checkout
1919
- run: npm pack
2020
- 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
21-
- run: cd ~/kitchensink/test-kitchensink && yarn test
21+
- run: cd ~/kitchensink/test-kitchensink && yarn test --maxWorkers=2
2222
- run: cd ~/kitchensink/test-kitchensink && yarn e2e:dev
2323
- run: cd ~/kitchensink/test-kitchensink && yarn e2e:build
2424

fixtures/kitchensink/.babelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
{
2-
"plugins": ["babel-plugin-transform-es2015-modules-commonjs"]
32
}

fixtures/kitchensink/.template.dependencies.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"dependencies": {
3-
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.46",
4-
"@babel/polyfill": "7.0.0-beta.46",
5-
"@babel/register": "7.0.0-beta.46",
63
"bootstrap": "4.1.0",
74
"normalize.css": "7.0.0",
85
"@types/prop-types": "15.5.3",

fixtures/kitchensink/src/features/syntax/AsyncAwait.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ async function load() {
1717
];
1818
}
1919

20-
/* eslint-disable */
21-
// Regression test for https://github.com/facebook/create-react-app/issues/3055
22-
const x = async (
23-
/* prettier-ignore */
24-
y: void
25-
) => {
26-
const z = await y;
27-
};
28-
/* eslint-enable */
29-
3020
export default class extends React.Component {
3121
static propTypes = {
3222
onReady: PropTypes.func.isRequired,

scripts/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ module.exports = function(
5050
if (process.env.E2E_TEST === 'true') {
5151
appPackage.scripts = {
5252
...appPackage.scripts,
53-
"e2e:dev:test": "TEST_URL=http://localhost:3000 jest --config=./jest.e2e.config.js",
53+
"e2e:dev:test": "TEST_URL=http://localhost:3000 jest --config=./jest.e2e.config.js --maxWorkers=2",
5454
"e2e:dev": "start-server-and-test start http-get://localhost:3000 e2e:dev:test",
5555
"serve": "react-scripts-ts build && serve -s build",
56-
"e2e:build:test": "TEST_URL=http://localhost:5000 jest --config=./jest.e2e.config.js",
56+
"e2e:build:test": "TEST_URL=http://localhost:5000 jest --config=./jest.e2e.config.js --maxWorkers=2",
5757
"e2e:build": "start-server-and-test serve http://localhost:5000 e2e:build:test"
5858
};
5959

0 commit comments

Comments
 (0)