diff --git a/package.json b/package.json index e0339d9b..851674ad 100644 --- a/package.json +++ b/package.json @@ -68,9 +68,9 @@ "expect-type": "^0.16.0", "express": "^4.18.2", "pify": "^6.1.0", - "playwright": "^1.39.0", + "playwright": "^1.40.1", "raw-body": "^2.5.2", - "ts-node": "^10.9.1", + "tsx": "^4.7.0", "typescript": "^5.2.2", "xo": "^0.56.0" }, @@ -94,8 +94,9 @@ "ts": "module" }, "nodeArguments": [ - "--loader=ts-node/esm" - ] + "--import=tsx/esm" + ], + "workerThreads": false }, "nyc": { "reporter": [ diff --git a/test/headers.ts b/test/headers.ts index f2235a28..17c20a48 100644 --- a/test/headers.ts +++ b/test/headers.ts @@ -43,7 +43,7 @@ test('`user-agent`', async t => { server.get('/', echoHeaders); const headers = await ky.get(server.url).json(); - t.is(headers['user-agent'], 'undici'); + t.is(headers['user-agent'], 'node'); }); test('`accept-encoding`', async t => { @@ -82,7 +82,7 @@ test('does not remove user headers from `url` object argument', async t => { .json(); t.is(headers.accept, 'application/json'); - t.is(headers['user-agent'], 'undici'); + t.is(headers['user-agent'], 'node'); t.is(headers['accept-encoding'], 'gzip, deflate'); t.is(headers['x-request-id'], 'value'); }); diff --git a/tsconfig.json b/tsconfig.json index 168f7959..d9a03892 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,10 +2,5 @@ "extends": "@sindresorhus/tsconfig", "include": [ "source" - ], - "ts-node": { - "transpileOnly": true, - "files": true, - "experimentalResolver": true - } + ] }