We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0656303 commit 9489810Copy full SHA for 9489810
lib/src/index.test.ts
@@ -0,0 +1,8 @@
1
+import { describe, test } from "vitest";
2
+import { autoLinkMd } from "../src";
3
+
4
+describe("react-markdown-autolink", () => {
5
+ test("test autolink", ({ expect }) => {
6
+ expect(autoLinkMd("this is a link: google.com")).toBe("this is a link: <google.com>");
7
+ });
8
+});
lib/vite.config.ts
@@ -12,7 +12,7 @@ export default defineConfig({
12
},
13
14
test: {
15
- environment: "jsdom",
+ environment: "node",
16
globals: true,
17
setupFiles: [],
18
coverage: {
0 commit comments