Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change test #2

Merged
merged 12 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading