Skip to content
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
- name: Check types
run: bun run check:typescript

- name: Check test types
run: bun run check:typescript:test
working-directory: packages/uniwind

- name: Check linting
run: bun run lint

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
- name: Check types
run: bun run check:typescript

- name: Check test types
run: bun run check:typescript:test
working-directory: packages/uniwind

- name: Check linting and formatting
run: bun run lint

Expand Down
1 change: 1 addition & 0 deletions packages/uniwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"precommit": "bun lint",
"build": "unbuild",
"check:typescript": "tsc --noEmit",
"check:typescript:test": "tsc --project tsconfig.test.json --noEmit",
"lint": "oxlint src",
"lint:fix": "oxlint src --fix",
"format": "dprint fmt",
Expand Down
6 changes: 3 additions & 3 deletions packages/uniwind/tests/e2e/getWebStyles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ async function getWebStyles(
context: UniwindContextType = { scopedTheme: null, rtl: null, variables: null },
) {
return page.evaluate(
([cls, ctx]) => {
return window.__uniwind.getWebStyles(cls, undefined, ctx)
({ className, context }) => {
return window.__uniwind.getWebStyles(className, undefined, context)
},
[className, context],
{ className, context },
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/uniwind/tests/native/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render } from '@testing-library/react-native'
import * as React from 'react'
import { StyleSheet } from 'react-native'
import type { RNStyle } from '../../../src/core/types'
import type { RNStyle } from '../../src/core/types'

export const renderUniwind = <T>(component: React.ReactElement<T>) => {
const renderResult = render(component)
Expand Down
7 changes: 6 additions & 1 deletion packages/uniwind/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
"compilerOptions": {
"jsx": "react-jsx",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"noUncheckedIndexedAccess": false,
"rootDir": "."
},
"include": [
"./src",
"./types.d.ts",
"./tests"
],
"exclude": [
"./tests/type-test"
]
}
2 changes: 2 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
"interactive": true
},
"check:typescript": {},
"uniwind#check:typescript:test": {},
"lint": {},
"//#check:format": {},
"circular:check": {},
"precommit": {
"dependsOn": [
"lint",
"check:typescript",
"uniwind#check:typescript:test",
Comment thread
Brentlok marked this conversation as resolved.
"circular:check",
"test:native",
"test:web",
Expand Down