From d536c495d81b3ceac7795e1af4b6a3d5d5dbf316 Mon Sep 17 00:00:00 2001 From: soyuka Date: Tue, 29 Oct 2024 11:31:58 +0100 Subject: [PATCH] test --- .github/workflows/ci.yml | 4 +++- .github/workflows/storybook.yml | 4 +--- src/useOnSubmit.test.tsx | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e43776a9..0f213013 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,9 @@ jobs: node-version: 'current' - name: Enable corepack - run: corepack enable + run: | + corepack install yarn@1 + corepack enable - name: Install dependencies run: yarn install diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 342d18c8..e2d10804 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -37,9 +37,7 @@ jobs: *.cache-to=type=gha,scope=${{github.ref}},mode=max - name: Start services - run: | - docker compose -f compose.yaml -f compose.ci.yaml build --pull - docker compose -f compose.yaml -f compose.ci.yaml up --wait --no-build + run: docker compose -f compose.yaml -f compose.ci.yaml up --wait --no-build - name: Create test database run: docker compose exec -T php bin/console -e test doctrine:database:create diff --git a/src/useOnSubmit.test.tsx b/src/useOnSubmit.test.tsx index 3820cafd..4725f978 100644 --- a/src/useOnSubmit.test.tsx +++ b/src/useOnSubmit.test.tsx @@ -19,6 +19,7 @@ const onSubmitProps = { fields: API_FIELDS_DATA, resource: 'books', schemaAnalyzer: schemaAnalyzer(), + children: [] }; jest.mock('./getIdentifierValue.js');