Skip to content

Commit

Permalink
test: typings and eslint ignore for hono tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muningis committed Dec 25, 2024
1 parent fd5be82 commit be85bc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/__tests__/hono.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import './setup-tests.js'
import { Hono } from "hono";
/* eslint-disable import/no-unresolved --
* imports paths are there in node_modules/hono/package.json
* but it doesn't get resolved
*/
import * as HonoJSX from "hono/jsx";
import * as HonoDOM from "hono/jsx/dom";
import * as _jsx_runtime from "hono/jsx/jsx-runtime";
/* eslint-enable import/no-unresolved */
import {suite} from 'uvu'
import * as assert from 'uvu/assert'
import {bundleMDX} from '../index.js'
Expand Down Expand Up @@ -57,6 +62,7 @@ test('smoke test for hono', async () => {
}
});

/** @param {HonoJSX.DOMAttributes} props */
const SpanBold = ({ children }) => {
return HonoJSX.createElement('span', { className: "strong" }, children)
}
Expand Down

0 comments on commit be85bc3

Please sign in to comment.