Skip to content

Commit

Permalink
update flex tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstyles committed May 11, 2024
1 parent e96d451 commit 0d1a5ab
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions packages/layout/flex/src/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ GlobalRegistrator.register()

import { Flex } from './index'

// beforeEach(() => {
// inject({
// classNamePrefix: "x",
// dev: false,
// test: true,
// useRemForFontSize: false,
// styleResolution: "application-order",
// });
// });
beforeEach(() => {
inject({
classNamePrefix: 'x',
dev: false,
test: true,
useRemForFontSize: false,
styleResolution: 'application-order',
})
})

describe('flex', () => {
test('Forwards the test-id', () => {
// const output = render(<Flex data-testid="some-id" />);
// console.log(Flex);
// @TODO handle stylex without a babel transform i.e. when running in the bun context rather than with Jest/Vite directly.
// const output = render(<Flex data-testid="some-id" />)
// console.log(Flex)

const output = render(<button type="button">hello world</button>)
const el = output.findByText('hello world')
expect(el).toBeDefined()

document.body.innerHTML = '<button>My button</button>'
const button = document.querySelector('button')
Expand Down

0 comments on commit 0d1a5ab

Please sign in to comment.