Skip to content

Commit d67f68f

Browse files
committed
ci(jest): bump cache key
1 parent 0be5370 commit d67f68f

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

.circleci/config.yml

+34-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ commands:
7373
steps:
7474
- restore_cache:
7575
keys:
76-
- v6-jest-{{ .Branch }}
76+
- v7-jest-{{ .Branch }}
7777
- run:
7878
name: Run TypeScript check
7979
command: yarn type-check
@@ -86,7 +86,7 @@ commands:
8686
environment:
8787
JEST_JUNIT_OUTPUT_DIR: ./reports/junit/
8888
- save_cache:
89-
key: v6-jest-{{ .Branch }}
89+
key: v7-jest-{{ .Branch }}
9090
paths:
9191
- .jest
9292
bundle-js:
@@ -202,7 +202,6 @@ commands:
202202
- android/build
203203
- android/app/build
204204
- node_modules/react-native-config
205-
206205
jobs:
207206
detect-secrets:
208207
docker:
@@ -227,6 +226,25 @@ jobs:
227226
name: Deploy beta
228227
command: ./scripts/deploy-beta-both
229228

229+
jest:
230+
# parallelism: 6
231+
executor:
232+
name: node/default
233+
tag: "16.18.0"
234+
steps:
235+
- checkout
236+
- node/install-packages:
237+
pkg-manager: yarn
238+
- run-relay-compiler
239+
- run:
240+
command: yarn jest Toast --ci --logHeapUsage --runInBand --reporters=default --reporters=jest-junit
241+
# --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL
242+
name: Run Jest tests
243+
environment:
244+
JEST_JUNIT_OUTPUT_DIR: ./reports/junit/
245+
- store_test_results:
246+
path: ./reports/junit/
247+
230248
update-metaphysics:
231249
executor:
232250
name: node/default
@@ -520,6 +538,7 @@ workflows:
520538
branches:
521539
only:
522540
- main
541+
523542
release-ios-app-workflow:
524543
jobs:
525544
- release-ios-app:
@@ -537,6 +556,15 @@ workflows:
537556
- main
538557
- release
539558
- staging
559+
560+
- jest:
561+
filters:
562+
branches:
563+
ignore:
564+
- app_store_submission
565+
- play_store_submission
566+
- update-changelog
567+
540568
- check-pr:
541569
filters:
542570
branches:
@@ -562,6 +590,7 @@ workflows:
562590
only:
563591
- beta-ios
564592
- beta-android
593+
565594
- build-test-app-ios:
566595
filters:
567596
branches:
@@ -573,6 +602,7 @@ workflows:
573602
requires:
574603
- build-test-js
575604
- horizon/block
605+
576606
- build-test-app-android:
577607
filters:
578608
branches:
@@ -584,6 +614,7 @@ workflows:
584614
requires:
585615
- build-test-js
586616
- horizon/block
617+
587618
- update-metaphysics:
588619
filters:
589620
branches:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
"jest-environment-jsdom": "29.3.1",
277277
"jest-extended": "0.11.5",
278278
"jest-fetch-mock": "3.0.3",
279-
"jest-junit": "13.0.0",
279+
"jest-junit": "15.0.0",
280280
"jest-raw-loader": "1.0.1",
281281
"jest-watch-typeahead": "0.6.1",
282282
"jetifier": "1.6.6",

src/app/Components/Toast/Toast.tests.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe("Toast", () => {
3232
})
3333

3434
it("renders a toast when show toast is called", async () => {
35+
expect(false).toBe(true)
3536
const tree = renderWithWrappersLEGACY(<TestRenderer />)
3637

3738
expect(tree.root.findAllByType(ToastComponent)).toHaveLength(0)

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -9778,10 +9778,10 @@ jest-haste-map@^29.3.1:
97789778
optionalDependencies:
97799779
fsevents "^2.3.2"
97809780

9781-
jest-junit@13.0.0:
9782-
version "13.0.0"
9783-
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-13.0.0.tgz#479be347457aad98ae8a5983a23d7c3ec526c9a3"
9784-
integrity sha512-JSHR+Dhb32FGJaiKkqsB7AR3OqWKtldLd6ZH2+FJ8D4tsweb8Id8zEVReU4+OlrRO1ZluqJLQEETm+Q6/KilBg==
9781+
jest-junit@15.0.0:
9782+
version "15.0.0"
9783+
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-15.0.0.tgz#a47544ab42e9f8fe7ada56306c218e09e52bd690"
9784+
integrity sha512-Z5sVX0Ag3HZdMUnD5DFlG+1gciIFSy7yIVPhOdGUi8YJaI9iLvvBb530gtQL2CHmv0JJeiwRZenr0VrSR7frvg==
97859785
dependencies:
97869786
mkdirp "^1.0.4"
97879787
strip-ansi "^6.0.1"

0 commit comments

Comments
 (0)