From d9f688710aafa071a4d46d02d9e1025f7503b265 Mon Sep 17 00:00:00 2001 From: timelyportfolio Date: Sun, 21 Jan 2024 16:34:51 -0600 Subject: [PATCH] get vitest working --- js-tests/react-tools.test.jsx | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js-tests/react-tools.test.jsx b/js-tests/react-tools.test.jsx index 4fc0e99..735402b 100644 --- a/js-tests/react-tools.test.jsx +++ b/js-tests/react-tools.test.jsx @@ -3,7 +3,7 @@ import React from 'react' import ReactDOM from 'react' import { renderToString } from 'react-dom/server' import { parseXml } from '@rgrove/parse-xml' -import { parse } from 'html-react-parser' +import parse from 'html-react-parser' import { hydrate } from '../srcjs/react-tools' /** diff --git a/package.json b/package.json index 75aa9da..995474d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "private": true, "type": "module", "scripts": { - "build": "vite build" + "build": "vite build", + "test": "vitest run" }, "devDependencies": { "@vitejs/plugin-react": "^4.2.1",