Skip to content

Commit

Permalink
Merge pull request #51 from melfore/28-add-test-suites
Browse files Browse the repository at this point in the history
Add test suite
  • Loading branch information
luciob committed Sep 8, 2023
2 parents 1aaebf0 + 5ac1adf commit 3955b70
Show file tree
Hide file tree
Showing 7 changed files with 35,938 additions and 23,956 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ jobs:
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
git pull
# - name: Unit Tests
# run: npm run test:coverage
# env:
# CI: true

- name: Run ESLint and Prettier
id: code-format
run: |
Expand All @@ -67,6 +62,13 @@ jobs:
run: |
git commit -m "docs: ✏️ Updated StoryBook" -a
- name: Test runner
run: |
npx playwright install --with-deps
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue"
npx http-server docs --port 6006 --silent
npx wait-on tcp:6006 && npm test
- name: Build
run: npm run build

Expand Down
8 changes: 8 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"all": true,
"check-coverage": true,
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config: StorybookConfig = {
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-mdx-gfm",
"@storybook/addon-coverage",
],
framework: {
name: "@storybook/react-webpack5",
Expand Down
Loading

0 comments on commit 3955b70

Please sign in to comment.