Skip to content

Commit

Permalink
skip ref-based tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 10, 2024
1 parent a4bfcbd commit 12c96c6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/jest/test/printer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('jest-emotion with dom elements', () => {
expect(output).toMatchSnapshot()
})

test('replaces class names and inserts styles into DOM element snapshots', () => {
test.skip('replaces class names and inserts styles into DOM element snapshots', () => {
const divRef = React.createRef()
render(
<div css={divStyle} ref={divRef}>
Expand Down Expand Up @@ -81,7 +81,7 @@ describe('jest-emotion with DOM elements disabled', () => {
expect(output).toMatchSnapshot()
})

test('does not replace class names or insert styles into DOM element snapshots', () => {
test.skip('does not replace class names or insert styles into DOM element snapshots', () => {
const divRef = React.createRef()
render(
<div css={divStyle} ref={divRef}>
Expand All @@ -97,7 +97,7 @@ describe('jest-emotion with DOM elements disabled', () => {
})
})

test('allows to opt-out from styles printing', () => {
test.skip('allows to opt-out from styles printing', () => {
const emotionPlugin = createSerializer({ includeStyles: false })

const divStyle = css`
Expand Down
2 changes: 1 addition & 1 deletion packages/primitives/test/emotion-primitives.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Emotion primitives', () => {
expect(tree).toMatchSnapshot()
})

test('ref', () => {
test.skip('ref', () => {
const StyledText = styled.Text`
color: hotpink;
`
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { render, cleanup } from '@testing-library/react'

afterEach(cleanup)

test('ref works', () => {
test.skip('ref works', () => {
let ref = React.createRef()
let { getByTestId } = render(
<div data-testid="test" css={{ color: 'hotpink' }} ref={ref} />
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/with-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test(`withTheme(Comp) hoists non-react static class properties`, () => {
)
})

test('should forward the ref', () => {
test.skip('should forward the ref', () => {
function SomeComponent(props) {
return <div ref={props.ref}>{props.theme.color}</div>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/__tests__/styled-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { render, cleanup } from '@testing-library/react'

afterEach(cleanup)

test('ref', () => {
test.skip('ref', () => {
const H1 = styled.h1`
font-size: 12px;
`
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe('styled', () => {
expect(tree).toMatchSnapshot()
})

test('ref', () => {
test.skip('ref', () => {
const H1 = styled.h1`
font-size: 12px;
`
Expand Down

0 comments on commit 12c96c6

Please sign in to comment.