Skip to content

Commit

Permalink
fix: adds snapshot test as part of CI checks (carbon-design-system#4798)
Browse files Browse the repository at this point in the history
* fix: adds snapshot test as part of CI checks

* fix: removes test helper from tests

---------

Co-authored-by: Matt Gallo <[email protected]>
  • Loading branch information
davidmenendez and matthewgallo authored Apr 18, 2024
1 parent 8fb0ed2 commit 7fd4343
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions config/jest-config-ibm-cloud-cognitive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module.exports = {
'/umd/',
'/vendor/',
'/scripts/',
'test-helper.js',
],
transformIgnorePatterns: [
'/build/',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*'",
Expand Down

0 comments on commit 7fd4343

Please sign in to comment.