From 7fd43439642040cf303e287efc13b00d09d885de Mon Sep 17 00:00:00 2001 From: David Menendez Date: Thu, 18 Apr 2024 10:02:51 -0500 Subject: [PATCH] fix: adds snapshot test as part of CI checks (#4798) * fix: adds snapshot test as part of CI checks * fix: removes test helper from tests --------- Co-authored-by: Matt Gallo --- .github/workflows/ci.yml | 2 ++ config/jest-config-ibm-cloud-cognitive/index.js | 1 + package.json | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7055ba3e33..1a45257abb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,6 +92,8 @@ jobs: run: yarn - name: CI tests for c4p run: yarn ci-check:test:c4p + - name: CI snapshot tests for c4p + run: yarn ci-check:test:c4p:snapshot test-community: runs-on: ubuntu-latest steps: diff --git a/config/jest-config-ibm-cloud-cognitive/index.js b/config/jest-config-ibm-cloud-cognitive/index.js index c29b241b7b..c86cd6cefc 100644 --- a/config/jest-config-ibm-cloud-cognitive/index.js +++ b/config/jest-config-ibm-cloud-cognitive/index.js @@ -89,6 +89,7 @@ module.exports = { '/umd/', '/vendor/', '/scripts/', + 'test-helper.js', ], transformIgnorePatterns: [ '/build/', diff --git a/package.json b/package.json index ba1aa11671..69dddc1e12 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "ci-check:lint": "run-p -s audit lint", "ci-check:tests": "run-p -s 'ci-check:test:*'", "ci-check:test:c4p": "yarn test:c4p --ci", + "ci-check:test:c4p:snapshot": "yarn test:c4p:snapshot --ci", "ci-check:test:community": "yarn test:community --ci", "ci-check:spellcheck": "yarn spellcheck", "clean": "run-p -s 'clean:*' && run-p -s 'clean:finally:*'",