File tree Expand file tree Collapse file tree 4 files changed +283
-19
lines changed
Expand file tree Collapse file tree 4 files changed +283
-19
lines changed Original file line number Diff line number Diff line change 5353 "devDependencies" : {
5454 "@commitlint/cli" : " ^19.5.0" ,
5555 "@commitlint/config-conventional" : " ^19.5.0" ,
56- "@openapi-typescript-infra/coconfig" : " ^4.5 .0" ,
57- "@openapi-typescript-infra/service" : " ^5.1.2 " ,
56+ "@openapi-typescript-infra/coconfig" : " ^4.6 .0" ,
57+ "@openapi-typescript-infra/service" : " ^5.2.0 " ,
5858 "@semantic-release/changelog" : " ^6.0.3" ,
5959 "@semantic-release/commit-analyzer" : " ^13.0.0" ,
6060 "@semantic-release/exec" : " ^6.0.3" ,
6868 "eslint-config-prettier" : " ^9.1.0" ,
6969 "eslint-import-resolver-typescript" : " ^3.6.3" ,
7070 "eslint-plugin-import" : " ^2.31.0" ,
71- "ts-node" : " ^10.9.2" ,
7271 "vitest" : " 2.1.3"
7372 },
7473 "dependencies" : {
7877 "pino-pretty" : " ^11.3.0" ,
7978 "read-package-up" : " ^11.0.0" ,
8079 "supertest" : " ^7.0.0" ,
80+ "tsx" : " ^4.19.1" ,
8181 "typescript" : " ^5.6.3"
8282 },
8383 "packageManager" : " yarn@3.8.1"
Original file line number Diff line number Diff line change 11import http from 'http' ;
22import path from 'path' ;
3- // We are going to test Typescript files, so use the ts-node
4- // register hook to allow require to resolve these modules
5- import { register } from 'node:module'
6- import { pathToFileURL } from 'url'
73import assert from 'assert' ;
84
95import request from 'supertest' ;
@@ -24,7 +20,7 @@ let app: ServiceExpress | undefined;
2420let appService : ServiceFactory < ServiceLocals , RequestLocals > | undefined ;
2521let listener : http . Server | undefined ;
2622
27- register ( 'ts-node /esm', pathToFileURL ( './' ) ) ;
23+ await import ( 'tsx /esm') ;
2824
2925async function getRootDirectory ( cwd : string , root ?: string ) {
3026 if ( root ) {
Original file line number Diff line number Diff line change 1+ declare module 'tsx/esm' ;
You can’t perform that action at this time.
0 commit comments