From a1b3584a18349e31b7f8b908ca7cc25e8109a7a4 Mon Sep 17 00:00:00 2001 From: Ray Foss Date: Tue, 26 Sep 2023 18:26:15 -0500 Subject: [PATCH] fix: tests --- package.json | 8 ++++---- test/app.test.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2fc4b05..b7485a2 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "dev:client": "VITE_SSG=off vite", "dev:server": "npx tsx watch --clear-screen=false server/index.ts", "preview": "vite preview", - "test:server": "npx typescript --noEmit && npx vitest run", - "test:client": "npx typescript --noEmit", + "test:server": "npx tsc --noEmit && npx vitest run", + "test:client": "npx tsc --noEmit", "build": "tsc && vite build --outDir dist/client", "bundle:client": "tsc --declaration --outDir dist/server src/services/*/*.schema.ts", "install": "npm run bundle:client", @@ -17,7 +17,7 @@ "update": "npx npm-check-updates -u", "i": "ls node_modules &> /dev/null || npm i", "force-checkout": "npx g4c checkout --force HEAD", - "switch-to-javascript-mode": "npx typescript -p tsconfig.node.json" + "switch-to-javascript-mode": "npx tsc -p tsconfig.node.json" }, "repository": { "type": "git", @@ -45,7 +45,7 @@ "devDependencies": { "@types/cors": "^2.8.12", "@types/jsonwebtoken": "^8.5.8", - "feathers-vite": "~1.2.2", + "feathers-vite": "~1.2.7", "node-fetch": "^3.2.9", "typescript": "^5.1.3", "vite": "4.2.0" diff --git a/test/app.test.ts b/test/app.test.ts index 5dcced5..5c82dc7 100644 --- a/test/app.test.ts +++ b/test/app.test.ts @@ -3,7 +3,7 @@ import { Server } from 'http' import fetch from 'node-fetch' import { URL } from 'node:url' -import { main } from '../api/app.js' +import { main } from '../src/app.js' const port = '' + 8998 const getUrl = (pathname?: string) => {