Skip to content

Commit be85bc3

Browse files
committed
test: typings and eslint ignore for hono tests
1 parent fd5be82 commit be85bc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/__tests__/hono.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import './setup-tests.js'
22
import { Hono } from "hono";
3+
/* eslint-disable import/no-unresolved --
4+
* imports paths are there in node_modules/hono/package.json
5+
* but it doesn't get resolved
6+
*/
37
import * as HonoJSX from "hono/jsx";
48
import * as HonoDOM from "hono/jsx/dom";
59
import * as _jsx_runtime from "hono/jsx/jsx-runtime";
10+
/* eslint-enable import/no-unresolved */
611
import {suite} from 'uvu'
712
import * as assert from 'uvu/assert'
813
import {bundleMDX} from '../index.js'
@@ -57,6 +62,7 @@ test('smoke test for hono', async () => {
5762
}
5863
});
5964

65+
/** @param {HonoJSX.DOMAttributes} props */
6066
const SpanBold = ({ children }) => {
6167
return HonoJSX.createElement('span', { className: "strong" }, children)
6268
}

0 commit comments

Comments
 (0)