Skip to content

Commit 499f0dd

Browse files
committed
Merge branch 'master' into remove-provides-node-modules
2 parents ecf5f93 + 6cbd3cb commit 499f0dd

File tree

616 files changed

+15316
-5741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

616 files changed

+15316
-5741
lines changed

.azure-pipelines-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
- checkout: self
77
path: jest
88

9-
# Ensure Node.js 10 is active
9+
# Ensure Node.js 12 is active
1010
- task: NodeTool@0
1111
inputs:
1212
versionSpec: '12.x'

.azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- job: macOS
2323
pool:
24-
vmImage: macos-10.13
24+
vmImage: macos-10.15
2525
steps:
2626
# This step can be removed once Mercurial gets installed on the macOS image. See https://github.com/Microsoft/azure-pipelines-image-generation/issues/604
2727
- script: HOMEBREW_NO_AUTO_UPDATE=1 brew install mercurial

.circleci/config.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- image: circleci/node:8
2525
steps:
2626
- checkout
27+
- run:
28+
command: yarn remove-prettier-dep
2729
- restore-cache: *restore-cache
2830
- run: *install
2931
- save-cache: *save-cache
@@ -88,6 +90,20 @@ jobs:
8890
- store_test_results:
8991
path: reports/junit
9092

93+
test-node-14:
94+
working_directory: ~/jest
95+
docker:
96+
- image: circleci/node:14
97+
steps:
98+
- checkout
99+
- restore-cache: *restore-cache
100+
- run: *install
101+
- save-cache: *save-cache
102+
- run:
103+
command: yarn test-ci-partial
104+
- store_test_results:
105+
path: reports/junit
106+
91107
test-browser:
92108
working_directory: ~/jest
93109
docker:
@@ -121,7 +137,8 @@ workflows:
121137
- test-node-8
122138
- test-node-10
123139
- test-node-12
124-
- test-node-13 # current
140+
- test-node-13
141+
- test-node-14 # current
125142
- test-jest-circus
126143
- test-browser
127144
- test-or-deploy-website:

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ website/build
1010
website/node_modules
1111
website/i18n/*.js
1212
website/translated_docs
13+
website/static
1314
!.eslintrc.js

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ module.exports = {
132132
'**/__mocks__/**',
133133
'**/?(*.)(spec|test).js?(x)',
134134
'scripts/**',
135-
'eslintImportResolver.js',
135+
'babel.config.js',
136136
'testSetupFile.js',
137137
],
138138
},
@@ -146,4 +146,7 @@ module.exports = {
146146
'prettier/prettier': 2,
147147
'sort-imports': [2, {ignoreDeclarationSort: true}],
148148
},
149+
settings: {
150+
'import/ignore': ['react-native'],
151+
},
149152
};

.github/workflows/nodejs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
run: node scripts/build.js
4242
- name: run tsc
4343
run: yarn build:ts
44+
- name: verify ts 3.4 compatibility
45+
run: yarn verify-old-ts
4446
- name: run eslint
4547
run: yarn lint
4648
- name: run eslint on browser builds
@@ -55,7 +57,7 @@ jobs:
5557
fail-fast: false
5658
matrix:
5759
# https://github.com/actions/setup-node/issues/27
58-
node-version: [8.17.0, 10.x, 12.x, 13.x]
60+
node-version: [8.17.0, 10.x, 12.x, 13.x, 14.x]
5961
os: [ubuntu-latest, macOS-latest, windows-latest]
6062
runs-on: ${{ matrix.os }}
6163

@@ -80,6 +82,9 @@ jobs:
8082
uses: actions/setup-node@v1
8183
with:
8284
node-version: ${{ matrix.node-version }}
85+
- name: remove prettier dep
86+
run: yarn remove-prettier-dep
87+
if: matrix.node-version == '8.17.0'
8388
- name: install
8489
run: yarn install-no-ts-build
8590
- name: run tests

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ yarn-error.log*
3939
junit.xml
4040

4141
*.tsbuildinfo
42+
43+
.pnp.js
44+
.yarn/unplugged/
45+
.yarn/build-state.yml
46+
e2e/async-regenerator/.yarn/

.vscode/launch.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "Debug Jest with current test file",
11-
"program": "${workspaceFolder}/packages/jest-cli/bin/jest.js",
12-
"args": ["--runInBand", "${file}"],
13-
"runtimeArgs": ["-r", "flow-remove-types/register"]
10+
"name": "Jest Current File",
11+
"program": "${workspaceFolder}/node_modules/.bin/jest",
12+
"args": ["${fileBasenameNoExtension}"],
13+
"console": "integratedTerminal",
14+
"internalConsoleOptions": "neverOpen",
15+
"disableOptimisticBPs": true,
16+
"windows": {
17+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
18+
}
1419
}
1520
]
1621
}

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"**/node_modules": true,
66
"**/build": true
77
},
8-
"eslint.autoFixOnSave": true,
98
"javascript.validate.enable": false,
10-
"jest.pathToJest": "yarn jest --"
9+
"jest.pathToJest": "yarn jest --",
10+
"editor.codeActionsOnSave": {
11+
"source.fixAll.eslint": true
12+
},
13+
"typescript.tsdk": "node_modules/typescript/lib"
1114
}

.yarn/releases/yarn-1.22.0.js renamed to .yarn/releases/yarn-1.22.4.js

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34805,15 +34805,27 @@ function hasMergeConflicts(str) {
3480534805
function parse(str, fileLoc) {
3480634806
const parser = new Parser(str, fileLoc);
3480734807
parser.next();
34808-
try {
34809-
return parser.parse();
34810-
} catch (error1) {
34808+
34809+
if (!fileLoc.endsWith(`.yml`)) {
3481134810
try {
34812-
return safeLoad(str, {
34813-
schema: FAILSAFE_SCHEMA
34814-
});
34815-
} catch (error2) {
34816-
throw error1;
34811+
return parser.parse();
34812+
} catch (error1) {
34813+
try {
34814+
return safeLoad(str, {
34815+
schema: FAILSAFE_SCHEMA
34816+
});
34817+
} catch (error2) {
34818+
throw error1;
34819+
}
34820+
}
34821+
} else {
34822+
const result = safeLoad(str, {
34823+
schema: FAILSAFE_SCHEMA
34824+
});
34825+
if (typeof result === 'object') {
34826+
return result;
34827+
} else {
34828+
return {};
3481734829
}
3481834830
}
3481934831
}
@@ -46666,7 +46678,7 @@ function mkdirfix (name, opts, cb) {
4666646678
/* 194 */
4666746679
/***/ (function(module, exports) {
4666846680

46669-
module.exports = {"name":"yarn","installationMethod":"unknown","version":"1.22.0","license":"BSD-2-Clause","preferGlobal":true,"description":"📦🐈 Fast, reliable, and secure dependency management.","dependencies":{"@zkochan/cmd-shim":"^3.1.0","babel-runtime":"^6.26.0","bytes":"^3.0.0","camelcase":"^4.0.0","chalk":"^2.1.0","cli-table3":"^0.4.0","commander":"^2.9.0","death":"^1.0.0","debug":"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0","dnscache":"^1.0.1","glob":"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0","ini":"^1.3.4","inquirer":"^6.2.0","invariant":"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0","js-yaml":"^3.13.1","leven":"^2.0.0","loud-rejection":"^1.2.0","micromatch":"^2.3.11","mkdirp":"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0","puka":"^1.0.0","read":"^1.0.7","request":"^2.87.0","request-capture-har":"^1.2.2","rimraf":"^2.5.0","semver":"^5.1.0","ssri":"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1","uuid":"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.4","yn":"^2.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-inline-import":"^3.0.0","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0","babylon":"^6.5.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.0.0","eslint":"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.28","eslint-plugin-yarn-internal":"file:scripts/eslint-rules","execa":"^0.11.0","fancy-log":"^1.3.2","flow-bin":"^0.66.0","git-release-notes":"^3.0.0","gulp":"^4.0.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","jest":"^22.4.4","jsinspect":"^0.12.6","minimatch":"^3.0.4","mock-stdin":"^0.3.0","prettier":"^1.5.2","string-replace-loader":"^2.1.1","temp":"^0.8.3","webpack":"^2.1.0-beta.25","yargs":"^6.3.0"},"resolutions":{"sshpk":"^1.14.2"},"engines":{"node":">=4.0.0"},"repository":"yarnpkg/yarn","bin":{"yarn":"./bin/yarn.js","yarnpkg":"./bin/yarn.js"},"scripts":{"build":"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat","changelog":"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src","lint":"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js","prettier":"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh","test":"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose","watch":"gulp watch","commit":"git-cz"},"jest":{"collectCoverageFrom":["src/**/*.js"],"testEnvironment":"node","modulePathIgnorePatterns":["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],"testPathIgnorePatterns":["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
46681+
module.exports = {"name":"yarn","installationMethod":"unknown","version":"1.22.4","license":"BSD-2-Clause","preferGlobal":true,"description":"📦🐈 Fast, reliable, and secure dependency management.","dependencies":{"@zkochan/cmd-shim":"^3.1.0","babel-runtime":"^6.26.0","bytes":"^3.0.0","camelcase":"^4.0.0","chalk":"^2.1.0","cli-table3":"^0.4.0","commander":"^2.9.0","death":"^1.0.0","debug":"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0","dnscache":"^1.0.1","glob":"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0","ini":"^1.3.4","inquirer":"^6.2.0","invariant":"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0","js-yaml":"^3.13.1","leven":"^2.0.0","loud-rejection":"^1.2.0","micromatch":"^2.3.11","mkdirp":"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0","puka":"^1.0.0","read":"^1.0.7","request":"^2.87.0","request-capture-har":"^1.2.2","rimraf":"^2.5.0","semver":"^5.1.0","ssri":"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1","uuid":"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.4","yn":"^2.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-inline-import":"^3.0.0","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0","babylon":"^6.5.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.0.0","eslint":"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.28","eslint-plugin-yarn-internal":"file:scripts/eslint-rules","execa":"^0.11.0","fancy-log":"^1.3.2","flow-bin":"^0.66.0","git-release-notes":"^3.0.0","gulp":"^4.0.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","jest":"^22.4.4","jsinspect":"^0.12.6","minimatch":"^3.0.4","mock-stdin":"^0.3.0","prettier":"^1.5.2","string-replace-loader":"^2.1.1","temp":"^0.8.3","webpack":"^2.1.0-beta.25","yargs":"^6.3.0"},"resolutions":{"sshpk":"^1.14.2"},"engines":{"node":">=4.0.0"},"repository":"yarnpkg/yarn","bin":{"yarn":"./bin/yarn.js","yarnpkg":"./bin/yarn.js"},"scripts":{"build":"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat","changelog":"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src","lint":"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js","prettier":"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh","test":"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose","watch":"gulp watch","commit":"git-cz"},"jest":{"collectCoverageFrom":["src/**/*.js"],"testEnvironment":"node","modulePathIgnorePatterns":["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],"testPathIgnorePatterns":["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
4667046682

4667146683
/***/ }),
4667246684
/* 195 */
@@ -69876,12 +69888,12 @@ function getRcConfigForFolder(cwd) {
6987669888
}
6987769889

6987869890
function loadRcFile(fileText, filePath) {
69879-
var _parse = (0, (_lockfile || _load_lockfile()).parse)(fileText, 'yarnrc');
69891+
var _parse = (0, (_lockfile || _load_lockfile()).parse)(fileText, filePath);
6988069892

6988169893
let values = _parse.object;
6988269894

6988369895

69884-
if (filePath.match(/\.yml$/)) {
69896+
if (filePath.match(/\.yml$/) && typeof values.yarnPath === 'string') {
6988569897
values = { 'yarn-path': values.yarnPath };
6988669898
}
6988769899

@@ -98338,7 +98350,7 @@ var _buildSubCommands = (0, (_buildSubCommands2 || _load_buildSubCommands()).def
9833898350
const rcPath = `${config.lockfileFolder}/.yarnrc.yml`;
9833998351
reporter.log(`Updating ${chalk.magenta(rcPath)}...`);
9834098352

98341-
yield (_fs || _load_fs()).writeFilePreservingEol(rcPath, `yarnPath: ${JSON.stringify(yarnPath)}\n`);
98353+
yield (_fs || _load_fs()).writeFilePreservingEol(rcPath, `yarnPath: ${JSON.stringify(targetPath)}\n`);
9834298354
} else {
9834398355
const rcPath = `${config.lockfileFolder}/.yarnrc`;
9834498356
reporter.log(`Updating ${chalk.magenta(rcPath)}...`);
@@ -100586,6 +100598,11 @@ let start = (() => {
100586100598
const opts = { stdio: 'inherit', env: Object.assign({}, process.env, { YARN_IGNORE_PATH: 1 }) };
100587100599
let exitCode = 0;
100588100600

100601+
process.on(`SIGINT`, function () {
100602+
// We don't want SIGINT to kill our process; we want it to kill the
100603+
// innermost process, whose end will cause our own to exit.
100604+
});
100605+
100589100606
try {
100590100607
if (yarnPath.endsWith(`.js`)) {
100591100608
exitCode = yield (0, (_child || _load_child()).spawnp)(process.execPath, [yarnPath, ...argv], opts);
@@ -107715,7 +107732,11 @@ function parseRcPaths(paths, parser) {
107715107732
try {
107716107733
return parser((0, (_fs || _load_fs()).readFileSync)(path).toString(), path);
107717107734
} catch (error) {
107718-
return {};
107735+
if (error.code === 'ENOENT' || error.code === 'EISDIR') {
107736+
return {};
107737+
} else {
107738+
throw error;
107739+
}
107719107740
}
107720107741
}));
107721107742
}

.yarnrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44

55
lastUpdateCheck 1576854265612
6-
yarn-path ".yarn/releases/yarn-1.22.0.js"
6+
yarn-path ".yarn/releases/yarn-1.22.4.js"

0 commit comments

Comments
 (0)