Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run jest's tests in the e2e tests #12202

Merged
merged 13 commits into from Oct 16, 2020
10 changes: 8 additions & 2 deletions scripts/integration-tests/e2e-jest.sh
Expand Up @@ -42,7 +42,13 @@ yarn install
yarn dedupe '@babel/*'
yarn build

# Test
CI=true yarn test-ci-partial
# The full test suite take about 20mins on CircleCI. We run only a few of them
nicolo-ribaudo marked this conversation as resolved.
Show resolved Hide resolved
# to speed it up.
# The goals of this e2e test are:
# 1) Check that the typescript compilation isn't completely broken
# 2) Make sure that we don't accidentally break jest's usage or the Babel API
nicolo-ribaudo marked this conversation as resolved.
Show resolved Hide resolved
CI=true yarn test-ci-partial packages
CI=true yarn test-ci-partial e2e/__tests__/babel
CI=true yarn test-ci-partial e2e/__tests__/transform
Comment on lines +50 to +52
Copy link
Contributor

@SimenB SimenB Oct 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could do yarn test-ci-partial --ci packages e2e/__tests__/babel e2e/__tests__/transform?

FWIW I just landed jestjs/jest#10653 which adds test-ci-partial:parallel (which just removes the -i argument) so if you have multiple cores available on CI you can speed it up.

yarn test-ci-partial:parallel --ci --max-workers $(nproc) packages e2e/__tests__/babel e2e/__tests__/transform or something like that


cleanup