forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into pr/6334
* upstream/master: (122 commits) fix: don't report promises as open handles (jestjs#6716) support serializing `DocumentFragment` (jestjs#6705) Allow test titles to include array index (jestjs#6414) fix `toContain` suggest to contain equal message (jestjs#6810) fix: testMatch not working with negations (jestjs#6648) Add test cases for jestjs#6744 (jestjs#6772) print stack trace on calls to process.exit (jestjs#6714) Updates SnapshotTesting.md to provide more info. on snapshot scope (jestjs#6735) Mark snapshots as obsolete when moved to an inline snapshot (jestjs#6773) [Docs] Clarified the use of literal values as property matchers in toMatchSnapshot() (jestjs#6807) Update CHANGELOG.md (jestjs#6799) fix changelog entry that is not in 23.4.2 (jestjs#6796) Fix --coverage with --findRelatedTests overwriting collectCoverageFrom options (jestjs#6736) Update testURL default value from about:blank to localhost (jestjs#6792) fix: `matchInlineSnapshot` when prettier dependencies are mocked (jestjs#6776) Fix retryTimes and add e2e regression test (jestjs#6762) Release v23.4.2 Docs/ExpectAPI: Correct docs for `objectContaining` (jestjs#6754) chore(packages/babel-jest) readme (jestjs#6746) docs: noted --coverage aliased by --collectCoverage (jestjs#6741) ...
- Loading branch information
Showing
467 changed files
with
19,740 additions
and
2,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,26 +10,10 @@ aliases: | |
- node_modules | ||
- website/node_modules | ||
key: v2-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
|
||
- &deploy | ||
command: | | ||
# Deploy Jest website using Docusaurus bot | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Website Deployment Script" | ||
echo "machine github.com login docusaurus-bot password $DOCUSAURUS_PUBLISH_TOKEN" > ~/.netrc | ||
# install Docusaurus and generate file of English strings | ||
yarn && cd website && yarn write-translations | ||
# crowdin install | ||
sudo apt-get update | ||
sudo apt-get install default-jre rsync | ||
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb | ||
sudo dpkg -i crowdin.deb | ||
sleep 5 | ||
# translations upload/download | ||
yarn crowdin-upload | ||
yarn crowdin-download | ||
# build and publish website | ||
GIT_USER=docusaurus-bot USE_SSH=false yarn publish-gh-pages | ||
|
||
- &filter-ignore-gh-pages | ||
branches: | ||
ignore: gh-pages | ||
|
||
version: 2 | ||
jobs: | ||
|
@@ -73,21 +57,6 @@ jobs: | |
- store_test_results: | ||
path: reports/junit | ||
|
||
test-node-9: | ||
working_directory: ~/jest | ||
docker: | ||
- image: circleci/node:9 | ||
steps: | ||
- checkout | ||
- restore-cache: *restore-cache | ||
- run: yarn --no-progress | ||
- save-cache: *save-cache | ||
- run: | ||
command: yarn test-ci-partial | ||
environment: | ||
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml" | ||
|
||
|
||
test-jest-circus: | ||
working_directory: ~/jest | ||
docker: | ||
|
@@ -136,16 +105,19 @@ jobs: | |
- store_test_results: | ||
path: reports/junit | ||
|
||
test-and-deploy-website: | ||
test-or-deploy-website: | ||
working_directory: ~/jest | ||
docker: | ||
- image: circleci/node:8 | ||
resource_class: large | ||
steps: | ||
- checkout | ||
- restore-cache: *restore-cache | ||
- run: yarn --no-progress | ||
- save-cache: *save-cache | ||
- deploy: *deploy | ||
- run: | ||
name: Test or Deploy Jest Website | ||
command: ./.circleci/website.sh | ||
|
||
# Workflows enables us to run multiple jobs in parallel | ||
workflows: | ||
|
@@ -156,7 +128,7 @@ workflows: | |
- test-node-8 | ||
- test-node-6 | ||
- test-node-10 | ||
- test-node-9 | ||
- test-jest-circus | ||
- test-browser | ||
- test-and-deploy-website | ||
- test-or-deploy-website: | ||
filters: *filter-ignore-gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
git diff-tree --no-commit-id --name-only -r HEAD > files_changed.txt | ||
if ! grep -E "(^docs\/.*)|(^website\/.*)" files_changed.txt; then | ||
echo "Skipping deploy & test. No relevant website files have changed" | ||
else | ||
echo "Relevant website files have changed" | ||
if [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then | ||
# configure Docusaurus bot | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Website Deployment Script" | ||
echo "machine github.com login docusaurus-bot password $DOCUSAURUS_PUBLISH_TOKEN" > ~/.netrc | ||
# install Docusaurus and generate file of English strings | ||
yarn && cd website && yarn write-translations | ||
# crowdin install | ||
sudo apt-get update | ||
sudo apt-get install default-jre rsync | ||
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb | ||
sudo dpkg -i crowdin.deb | ||
# translations upload/download | ||
yarn crowdin-upload | ||
yarn crowdin-download | ||
# build and publish website | ||
GIT_USER=docusaurus-bot USE_SSH=false yarn publish-gh-pages | ||
else | ||
echo "Skipping deploy. Test website build" | ||
cd website && yarn && yarn build | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ untyped-import | |
untyped-type-import | ||
|
||
[version] | ||
^0.73.0 | ||
^0.75.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
## 👉 [Please follow one of these issue templates](https://github.com/facebook/jest/issues/new/choose) 👈 | ||
|
||
<!-- Love Jest? Please consider supporting our collective: 👉 https://opencollective.com/jest/donate --> | ||
|
||
Note: to keep the backlog clean and actionable, issues may be immediately closed if they do not follow one of the above issue templates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/jest) or our [discord channel](https://discord.gg/MWRhKCj) for questions. | ||
|
||
<!-- Love Jest? Please consider supporting our collective: 👉 https://opencollective.com/jest/donate --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.