From 296d26afcd9f87966add345e0ffdd17d693fdc00 Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Wed, 28 Feb 2024 16:48:04 +0000 Subject: [PATCH 1/4] test playwright ci report --- .github/workflows/e2e.yml | 3 +-- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9c239ee..d3e6edc 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -46,10 +46,9 @@ jobs: run: yarn wp-env - name: Run Playwright tests - run: npx playwright test --reporter=github + run: npx playwright test - uses: actions/upload-artifact@v4 - if: always() with: name: playwright-report path: playwright-report/ diff --git a/tsconfig.json b/tsconfig.json index 89d8902..f60b543 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,9 @@ "compilerOptions": { "outDir": "./build", "jsx": "react-jsx", - "module": "ESNext", + "module": "NodeNext", "target": "es2022", - "moduleResolution": "node", + "moduleResolution": "NodeNext", "resolveJsonModule": true, "sourceMap": true, "noImplicitAny": true, From a26a2b90b376ee51e5a5169b6fba94efa21cc457 Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Wed, 28 Feb 2024 17:20:57 +0000 Subject: [PATCH 2/4] playwright reporter list --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d3e6edc..5bf90b6 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -46,7 +46,7 @@ jobs: run: yarn wp-env - name: Run Playwright tests - run: npx playwright test + run: npx playwright test --reporter=list - uses: actions/upload-artifact@v4 with: From 6132412067f6f2ff00f15c4158a831f6363d2b67 Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Wed, 28 Feb 2024 17:26:09 +0000 Subject: [PATCH 3/4] remove reporter --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5bf90b6..d3e6edc 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -46,7 +46,7 @@ jobs: run: yarn wp-env - name: Run Playwright tests - run: npx playwright test --reporter=list + run: npx playwright test - uses: actions/upload-artifact@v4 with: From 308802bc12de54a7051198c61abcb8b4c922f0cb Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Wed, 28 Feb 2024 17:33:11 +0000 Subject: [PATCH 4/4] fix lint warn --- src/components/snippets/TsSupport.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/snippets/TsSupport.tsx b/src/components/snippets/TsSupport.tsx index e5d9493..bfc51e6 100644 --- a/src/components/snippets/TsSupport.tsx +++ b/src/components/snippets/TsSupport.tsx @@ -24,10 +24,11 @@ export {};`;

{__('TypeScript support', 'codeb-feature-flags')}

Create a file named{' '} - flags.d.ts at - the entrypoint of TypeScript code for the plugin/theme ( usually - src directory ) - and add the following declaration. + flags.d.ts{' '} + at the entrypoint of TypeScript code for the plugin/theme ( + usually + src directory + ) and add the following declaration.