-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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'
- Loading branch information
Showing
256 changed files
with
3,060 additions
and
3,458 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
# | ||
# Steps for building and testing Jest. See jobs defined in .azure-pipelines.yml | ||
# | ||
# | ||
|
||
# Clones the repo | ||
steps: | ||
- checkout: self | ||
- checkout: self | ||
|
||
# Ensure Node.js 10 is active | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '10.x' | ||
displayName: 'Use Node.js 10' | ||
# Ensure Node.js 10 is active | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '10.x' | ||
displayName: 'Use Node.js 10' | ||
|
||
# Ensure Python 2.7 is active | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '2.7' | ||
displayName: 'Use Python 2.7' | ||
# Ensure Python 2.7 is active | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '2.7' | ||
displayName: 'Use Python 2.7' | ||
|
||
# Workaround to move source files under a "jest" folder (see .azure-pipelines.yml for details) | ||
- script: | | ||
cd / | ||
mv $(Build.Repository.LocalPath) $(JEST_DIR) | ||
mkdir $(Build.Repository.LocalPath) | ||
displayName: 'Move source into jest folder' | ||
# Workaround to move source files under a "jest" folder (see .azure-pipelines.yml for details) | ||
- script: | | ||
cd / | ||
mv $(Build.Repository.LocalPath) $(JEST_DIR) | ||
mkdir $(Build.Repository.LocalPath) | ||
displayName: 'Move source into jest folder' | ||
# Run yarn to install dependencies and build | ||
- script: yarn | ||
workingDirectory: $(JEST_DIR) | ||
displayName: 'Install dependencies and build' | ||
# Run yarn to install dependencies and build | ||
- script: yarn | ||
workingDirectory: $(JEST_DIR) | ||
displayName: 'Install dependencies and build' | ||
|
||
# Run test-ci-partial | ||
- script: yarn run test-ci-partial | ||
workingDirectory: $(JEST_DIR) | ||
displayName: 'Run tests' | ||
# Run test-ci-partial | ||
- script: yarn run test-ci-partial | ||
workingDirectory: $(JEST_DIR) | ||
displayName: 'Run tests' | ||
|
||
# Publish CI test results | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/reports/junit/*.xml' | ||
searchFolder: $(JEST_DIR) | ||
testRunTitle: 'CI Tests $(Agent.OS)' | ||
displayName: 'Publish test results' | ||
condition: succeededOrFailed() | ||
# Publish CI test results | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/reports/junit/*.xml' | ||
searchFolder: $(JEST_DIR) | ||
testRunTitle: 'CI Tests $(Agent.OS)' | ||
displayName: 'Publish test results' | ||
condition: succeededOrFailed() |
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
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
10 changes: 4 additions & 6 deletions
10
e2e/__tests__/__snapshots__/cliHandlesExactFilenames.test.js.snap
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,21 +1,19 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CLI accepts exact file names if matchers matched 1`] = ` | ||
"PASS foo/bar.spec.js | ||
PASS foo/bar.spec.js | ||
✓ foo | ||
Force exiting Jest | ||
Have you considered using \`--detectOpenHandles\` to detect async operations that kept running after all tests finished?" | ||
Have you considered using \`--detectOpenHandles\` to detect async operations that kept running after all tests finished? | ||
`; | ||
|
||
exports[`CLI accepts exact file names if matchers matched 2`] = ` | ||
"Test Suites: 1 passed, 1 total | ||
Test Suites: 1 passed, 1 total | ||
Tests: 1 passed, 1 total | ||
Snapshots: 0 total | ||
Time: <<REPLACED>> | ||
Ran all test suites matching /.\\\\/foo\\\\/bar.spec.js/i." | ||
Ran all test suites matching /.\\/foo\\/bar.spec.js/i. | ||
`; | ||
exports[`CLI accepts exact file names if matchers matched 3`] = `""`; |
Oops, something went wrong.