Skip to content

Commit ce34e5d

Browse files
authored
chore: fix flaky tests on CI (apollographql#10424)
1 parent 71d0ecd commit ce34e5d

31 files changed

Lines changed: 2269 additions & 351 deletions

.circleci/config.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,25 @@ version: 2
33
jobs:
44
Filesize:
55
docker:
6-
- image: circleci/node:16.13.1
6+
- image: cimg/node:18.12.0
77
steps:
88
- checkout
9-
- run: npm run ci:precheck
109
- run: npm version
1110
- run: npm ci
1211
- run: npm run bundlesize
1312

13+
Lint:
14+
docker:
15+
- image: cimg/node:18.12.0
16+
steps:
17+
- checkout
18+
- run: npm version
19+
- run: npm ci
20+
- run: npm run lint
21+
1422
Tests:
1523
docker:
16-
- image: circleci/node:16.10.0
24+
- image: cimg/node:18.12.0
1725
steps:
1826
- checkout
1927
- run: npm run ci:precheck
@@ -29,28 +37,10 @@ jobs:
2937
- store_artifacts:
3038
path: reports/junit
3139

32-
# Ensure that any PR that changes packages has a changeset on it (perhaps
33-
# an empty one created with `changeset --empty`).
34-
# We run the Changesets job itself on all branches so that we can require
35-
# it to pass, but we don't run any steps on the "Version Packages" PRs
36-
# themselves.
37-
Changesets:
38-
docker:
39-
- image: circleci/node:16.13.1
40-
steps:
41-
- checkout
42-
- run: npm ci
43-
- unless:
44-
condition:
45-
matches:
46-
pattern: "^changeset-release/.+$"
47-
value: << pipeline.git.branch >>
48-
steps:
49-
- run: npm run changeset-check
50-
5140
workflows:
5241
version: 2
5342
Build and Test:
5443
jobs:
5544
- Filesize
5645
- Tests
46+
- Lint

.eslintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"overrides": [
3+
{
4+
"parser": "@typescript-eslint/parser",
5+
"plugins": ["@typescript-eslint"],
6+
"files": ["**/__tests__/**/*.[jt]sx", "**/?(*.)+(test).[jt]sx"],
7+
"extends": ["plugin:testing-library/react"],
8+
"rules": {
9+
"testing-library/prefer-user-event": "error"
10+
}
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)