Skip to content

Commit 2373697

Browse files
committed
Merge branch 'master' into docs/dontThrow
2 parents e38df49 + bdd6282 commit 2373697

622 files changed

Lines changed: 26324 additions & 31062 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 31 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2.1
2+
13
aliases:
24
- &filter-ignore-gh-pages
35
branches:
@@ -11,19 +13,33 @@ aliases:
1113

1214
orbs:
1315
node: circleci/node@4.0.0
14-
version: 2.1
16+
1517
jobs:
16-
test-node-10:
18+
test-node:
19+
parameters:
20+
node-version:
21+
type: string
22+
partial:
23+
type: boolean
24+
default: false
1725
working_directory: ~/jest
1826
executor: node/default
1927
steps:
2028
- checkout
2129
- node/install:
22-
node-version: '10'
30+
node-version: << parameters.node-version >>
2331
install-npm: false
2432
- node/install-packages: *install
25-
- run:
26-
command: yarn test-ci-partial
33+
- when:
34+
condition: << parameters.partial >>
35+
steps:
36+
- run:
37+
command: yarn test-ci-partial
38+
- unless:
39+
condition: << parameters.partial >>
40+
steps:
41+
- run:
42+
command: yarn test-ci
2743
- store_test_results:
2844
path: reports/junit
2945

@@ -41,71 +57,18 @@ jobs:
4157
- store_test_results:
4258
path: reports/junit
4359

44-
test-node-12:
45-
working_directory: ~/jest
46-
executor: node/default
47-
steps:
48-
- checkout
49-
- node/install:
50-
node-version: '12'
51-
install-npm: false
52-
- node/install-packages: *install
53-
- run:
54-
command: yarn test-ci-partial
55-
- store_test_results:
56-
path: reports/junit
57-
58-
test-node-14:
59-
working_directory: ~/jest
60-
executor: node/default
61-
steps:
62-
- checkout
63-
- node/install:
64-
node-version: '14'
65-
install-npm: false
66-
- node/install-packages: *install
67-
- run:
68-
command: yarn test-ci
69-
- store_test_results:
70-
path: reports/junit
71-
72-
test-node-15:
73-
working_directory: ~/jest
74-
executor: node/default
75-
steps:
76-
- checkout
77-
- node/install:
78-
node-version: '15'
79-
install-npm: false
80-
- node/install-packages: *install
81-
- run:
82-
command: yarn test-ci-partial
83-
- store_test_results:
84-
path: reports/junit
85-
86-
test-or-deploy-website:
87-
working_directory: ~/jest
88-
executor: node/default
89-
resource_class: large
90-
steps:
91-
- checkout
92-
- node/install:
93-
lts: true
94-
install-npm: false
95-
- node/install-packages: *install
96-
- run:
97-
name: Test or Deploy Jest Website
98-
command: ./.circleci/website.sh
99-
10060
# Workflows enables us to run multiple jobs in parallel
10161
workflows:
102-
version: 2
10362
build-and-deploy:
10463
jobs:
105-
- test-node-10
106-
- test-node-12
107-
- test-node-14
108-
- test-node-15 # current
64+
- test-node:
65+
matrix:
66+
parameters:
67+
node-version: ['14']
68+
- test-node:
69+
name: test-node-partial-<< matrix.node-version >>
70+
partial: true
71+
matrix:
72+
parameters:
73+
node-version: ['10', '12', '15', '16']
10974
- test-jest-jasmine
110-
- test-or-deploy-website:
111-
filters: *filter-ignore-gh-pages

.circleci/website.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ bin/
44
flow-typed/**
55
packages/*/build/**
66
packages/jest-diff/src/cleanupSemantic.ts
7+
website/.docusaurus
78
website/blog
89
website/build
910
website/node_modules
1011
website/i18n/*.js
11-
website/translated_docs
1212
website/static
1313
!.eslintrc.js

.eslintrc.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ module.exports = {
2323
},
2424
extends: [
2525
'plugin:import/errors',
26-
'prettier',
2726
'plugin:eslint-comments/recommended',
27+
'plugin:prettier/recommended',
2828
],
2929
overrides: [
3030
{
3131
extends: [
3232
'plugin:@typescript-eslint/eslint-recommended',
3333
'plugin:import/typescript',
34-
'prettier/@typescript-eslint',
3534
],
3635
files: ['*.ts', '*.tsx'],
3736
plugins: ['@typescript-eslint/eslint-plugin', 'local'],
@@ -153,6 +152,14 @@ module.exports = {
153152
'sort-keys': 'off',
154153
},
155154
},
155+
{
156+
files: ['website/**/*'],
157+
rules: {
158+
'import/order': 'off',
159+
'import/sort-keys': 'off',
160+
'sort-keys': 'off',
161+
},
162+
},
156163
{
157164
files: ['examples/**/*'],
158165
rules: {
@@ -258,7 +265,7 @@ module.exports = {
258265
parserOptions: {
259266
sourceType: 'module',
260267
},
261-
plugins: ['markdown', 'import', 'jest', 'prettier'],
268+
plugins: ['markdown', 'import', 'jest'],
262269
rules: {
263270
'accessor-pairs': ['warn', {setWithoutGet: true}],
264271
'block-scoped-var': 'off',
@@ -442,7 +449,6 @@ module.exports = {
442449
'prefer-arrow-callback': ['error', {allowNamedFunctions: true}],
443450
'prefer-const': 'error',
444451
'prefer-template': 'off',
445-
'prettier/prettier': 'error',
446452
quotes: [
447453
'error',
448454
'single',

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ about: If you have questions, please check Reactiflux or StackOverflow
1212

1313
For questions or help please see:
1414

15-
- [The Jest help page](https://jestjs.io/en/help.html)
15+
- [The Jest help page](https://jestjs.io/help)
1616
- [Our `#testing` channel in Reactiflux](https://discord.gg/j6FKKQQrW9)
1717
- The [jestjs](https://stackoverflow.com/questions/tagged/jestjs) tag on [StackOverflow](https://stackoverflow.com/questions/ask)

.github/workflows/lock.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
lock:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: dessant/lock-threads@v2.0.3
12+
with:
13+
github-token: ${{ github.token }}
14+
issue-lock-inactive-days: '30'
15+
issue-exclude-labels: 'Discussion'
16+
issue-lock-comment: >
17+
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
18+
19+
Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/jestjs) or our [discord channel](https://discord.gg/j6FKKQQrW9) for questions.
20+
21+
22+
pr-lock-inactive-days: '30'
23+
pr-lock-comment: >
24+
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
25+
26+
Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/jestjs) or our [discord channel](https://discord.gg/j6FKKQQrW9) for questions.
27+

.github/workflows/nodejs.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v2.3.4
2626

27-
- uses: actions/setup-node@v2.1.4
27+
- uses: actions/setup-node@v2.1.5
2828
with:
2929
node-version: 14.x
3030

3131
- name: Get yarn cache
3232
id: yarn-cache
3333
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
3434

35-
- uses: actions/cache@v2
35+
- uses: actions/cache@v2.1.5
3636
with:
3737
path: ${{ steps.yarn-cache.outputs.dir }}
3838
key: yarn2-${{ hashFiles('yarn.lock') }}
@@ -53,14 +53,14 @@ jobs:
5353
needs: prepare-yarn-cache
5454

5555
steps:
56-
- uses: actions/checkout@v2
57-
- uses: actions/setup-node@v2.1.4
56+
- uses: actions/checkout@v2.3.4
57+
- uses: actions/setup-node@v2.1.5
5858
with:
5959
node-version: 12.x
6060
- name: Get yarn cache
6161
id: yarn-cache
6262
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
63-
- uses: actions/cache@v2
63+
- uses: actions/cache@v2.1.5
6464
with:
6565
path: ${{ steps.yarn-cache.outputs.dir }}
6666
key: yarn2-${{ hashFiles('yarn.lock') }}
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
fail-fast: false
8787
matrix:
88-
node-version: [10.x, 12.x, 14.x, 15.x]
88+
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
8989
os: [ubuntu-latest, macOS-latest, windows-latest]
9090
runs-on: ${{ matrix.os }}
9191
needs: prepare-yarn-cache
@@ -97,15 +97,15 @@ jobs:
9797
git config --global core.autocrlf false
9898
git config --global core.symlinks true
9999
if: runner.os == 'Windows'
100-
- uses: actions/checkout@v2
100+
- uses: actions/checkout@v2.3.4
101101
- name: Use Node.js ${{ matrix.node-version }}
102-
uses: actions/setup-node@v2.1.4
102+
uses: actions/setup-node@v2.1.5
103103
with:
104104
node-version: ${{ matrix.node-version }}
105105
- name: Get yarn cache
106106
id: yarn-cache
107107
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
108-
- uses: actions/cache@v2
108+
- uses: actions/cache@v2.1.5
109109
with:
110110
path: ${{ steps.yarn-cache.outputs.dir }}
111111
key: yarn2-${{ hashFiles('yarn.lock') }}
@@ -137,15 +137,15 @@ jobs:
137137
git config --global core.autocrlf false
138138
git config --global core.symlinks true
139139
if: runner.os == 'Windows'
140-
- uses: actions/checkout@v2
140+
- uses: actions/checkout@v2.3.4
141141
- name: Use Node.js 14.x
142-
uses: actions/setup-node@v2.1.4
142+
uses: actions/setup-node@v2.1.5
143143
with:
144144
node-version: 14.x
145145
- name: Get yarn cache
146146
id: yarn-cache
147147
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
148-
- uses: actions/cache@v2
148+
- uses: actions/cache@v2.1.5
149149
with:
150150
path: ${{ steps.yarn-cache.outputs.dir }}
151151
key: yarn2-${{ hashFiles('yarn.lock') }}

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
/packages/*/coverage/
2121
/packages/*/node_modules/
2222

23+
/website/.docusaurus
2324
/website/build
2425
/website/backers.json
2526
/website/node_modules
2627
/website/yarn.lock
27-
/website/translated_docs
2828
/website/i18n/*
2929

30+
/benchmarks/*/node_modules/
31+
3032
/reports/*
3133

3234
coverage
@@ -46,3 +48,5 @@ package-lock.json
4648
!**/.yarn/sdks
4749
!**/.yarn/versions
4850
**/.pnp.*
51+
52+
crowdin-cli.jar
Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ plugins:
66
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
77
spec: "@yarnpkg/plugin-interactive-tools"
88

9-
yarnPath: .yarn/releases/yarn-2.4.0.cjs
9+
yarnPath: .yarn/releases/yarn-2.4.1.cjs

0 commit comments

Comments
 (0)