Skip to content

Commit

Permalink
chore: Remove unused internals test
Browse files Browse the repository at this point in the history
We're no longer using internals in the v2 branch.
  • Loading branch information
franky47 committed Sep 24, 2024
1 parent 82ce2ca commit ba555b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 34 deletions.
19 changes: 14 additions & 5 deletions packages/docs/src/app/(pages)/_landing/demo.client.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
'use client'

import { parseAsInteger, useQueryState } from 'nuqs'
import { useQueryState } from 'nuqs'
import { z } from 'zod'

export function Demo() {
const [hello, setHello] = useQueryState('hello', { defaultValue: '' })
const [count, setCount] = useQueryState(
'count',
parseAsInteger.withDefault(0)
)
const [count, setCount] = useQueryState('count', {
parse: z.coerce
.number()
.int()
.default(0)
.catch(({ input = 0 }) => {
if (typeof input !== 'number') return 0 // Somehow it can be a string
if (Number.isNaN(input)) return 0
return Math.floor(input)
}).parse,
defaultValue: 0
})
return (
<>
<button
Expand Down
9 changes: 0 additions & 9 deletions packages/e2e/cypress/e2e/internals.cy.js

This file was deleted.

20 changes: 0 additions & 20 deletions packages/e2e/src/app/app/internals/page.tsx

This file was deleted.

0 comments on commit ba555b5

Please sign in to comment.