Skip to content

Commit

Permalink
fix CI hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 10, 2023
1 parent 5c98de7 commit b1d6a7d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test-multiple-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- run: yarn install --frozen-lockfile --check-files
- run: yarn build
- name: Use React 17 for production test
if: ${{ matrix.env == 'production' }}
run: |
yarn add -D react@17.0.2 react-dom@17.0.2 @testing-library/react@12.1.4
- name: Patch for DEV-ONLY
if: ${{ matrix.env == 'development' }}
run: |
Expand Down
1 change: 1 addition & 0 deletions tests/async.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const sleep = (ms: number) =>
setTimeout(resolve, ms)
})

type Awaited<T> = T extends Promise<infer V> ? V : T // for TS < 4.5 FIXME later
const use2 = <T,>(x: T): Awaited<T> => (x instanceof Promise ? use(x) : x)

it('delayed increment', async () => {
Expand Down
1 change: 1 addition & 0 deletions tests/computed.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { proxy, snapshot, subscribe, useSnapshot } from 'valtio'
import { addComputed, proxyWithComputed, subscribeKey } from 'valtio/utils'

type Awaited<T> = T extends Promise<infer V> ? V : T // for TS < 4.5 FIXME later
const use2 = <T,>(x: T): Awaited<T> => (x instanceof Promise ? use(x) : x)

const consoleWarn = console.warn
Expand Down
1 change: 1 addition & 0 deletions tests/derive.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const sleep = (ms: number) =>
setTimeout(resolve, ms)
})

type Awaited<T> = T extends Promise<infer V> ? V : T // for TS < 4.5 FIXME later
const use2 = <T,>(x: T): Awaited<T> => (x instanceof Promise ? use(x) : x)

it('basic derive', async () => {
Expand Down

0 comments on commit b1d6a7d

Please sign in to comment.