Skip to content

Commit

Permalink
Merge pull request #2 from guidari/codecov-step2
Browse files Browse the repository at this point in the history
fix: change test
  • Loading branch information
guidari authored Aug 22, 2024
2 parents 572f2da + 6a2d0d5 commit 2e792fa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 33 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: ci
on:
push:
branches:
- main
- main-codecov
pull_request:
branches:
- main
- main-codecov
merge_group:
types: [checks_requested]

Expand Down Expand Up @@ -80,6 +80,12 @@ jobs:
yarn carbon-cli check --ignore '**/@(node_modules|examples|components|react|fixtures|compat)/**' 'packages/**/*.scss'
- name: Run tests
run: yarn test --ci
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: jest-components

e2e:
name: 'test:e2e'
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/codecov-components.yml

This file was deleted.

2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ flag_management:
individual_flags:
- name: jest-components
paths:
- packages/react/src/components/
- packages/react/src/components/**/*-test.js
statuses:
- type: project
target: auto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

describe('Accordion', () => {
it('should render', () => {
it('should render test', () => {
const { asFragment } = render(
<Accordion className="extra-class">
<AccordionItem className="child" title="Heading A">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Accordion should render 1`] = `
exports[`Accordion should render test 1`] = `
<DocumentFragment>
<ul
class="cds--accordion extra-class cds--accordion--end"
Expand Down

0 comments on commit 2e792fa

Please sign in to comment.