Skip to content

Commit

Permalink
Update tests & imports
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Sep 11, 2024
1 parent 57e4877 commit 74969bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"build": "tsc -b --emitDeclarationOnly --declarationMap --declaration && node esbuild.mjs",
"test": "node --loader ts-node/esm src/common/router.spec.ts",
"test": "node --loader ts-node/esm src/common/router.spec.ts && node --loader ts-node/esm src/listeners/node/index.spec.ts",
"prepack": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
Expand Down
2 changes: 1 addition & 1 deletion src/common/ResponseError/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import { TErrorHandler } from '../types/index.js';
import errorResponseText from './errorResponseText.json';
import errorResponseText from './errorResponseText.json' with { type: 'json' };

class ResponseError_ extends Error {
cause?: Error | undefined;
Expand Down
5 changes: 3 additions & 2 deletions src/listeners/node/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
*/

import assert from 'node:assert/strict';
import nodeListener from './index.js';
import { after, before, describe, it } from 'node:test';
import { handleResponseError } from '../../common/ResponseError/index.js';
import server, { Router } from '../../common/server.js';
import { handleResponseError as handleResponseError } from '../../common/ResponseError/index.js';
import nodeListener from './index.js';

const abortController = new AbortController();
const port = (Math.random() * (1 << 15)) | 0 | (1 << 11);
Expand Down

0 comments on commit 74969bf

Please sign in to comment.