@rvoh/psychic-spec-helpers 3.0.0-alpha.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/unit/supersession.ts +2 -1
- package/tsconfig.json +1 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@rvoh/psychic-spec-helpers",
|
|
4
|
-
"version": "3.0.0
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "psychic framework spec helpers",
|
|
6
6
|
"author": "RVO Health",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"psy": "NODE_ENV=${NODE_ENV:-test} tsx test-app/src/cli/index.ts",
|
|
30
30
|
"uspec": "vitest --config ./spec/unit/vite.config.ts",
|
|
31
31
|
"fspec": "vitest --config ./spec/features/vite.config.ts",
|
|
32
|
-
"build": "echo \"building psychic-spec-helpers...\" && rm -rf dist && npx tsc -p ./tsconfig.json",
|
|
32
|
+
"build": "echo \"building psychic-spec-helpers...\" && rm -rf dist && npx tsc -p ./tsconfig.esm.build.json",
|
|
33
33
|
"build:test-app": "rm -rf dist && echo \"building test app to esm...\" && npx tsc -p ./tsconfig.esm.build.test-app.json && echo \"building test app to cjs...\" && npx tsc -p ./tsconfig.cjs.build.test-app.json",
|
|
34
34
|
"lint": "pnpm eslint --no-warn-ignored \"src/**/*.ts\" \"spec/**/*.ts\" && pnpm prettier . --check",
|
|
35
35
|
"format": "pnpm prettier . --write",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
56
|
"@koa/etag": "^5.0.2",
|
|
57
57
|
"@koa/router": "^15.3.0",
|
|
58
|
-
"@rvoh/dream": "^2.
|
|
58
|
+
"@rvoh/dream": "^2.1.1",
|
|
59
59
|
"@rvoh/dream-spec-helpers": "^2.0.0",
|
|
60
60
|
"@rvoh/psychic": "^3.0.0-alpha.4",
|
|
61
61
|
"@types/cookiejar": "^2",
|
package/src/unit/supersession.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CookieAccessInfo as CookieAccess } from 'cookiejar'
|
|
2
2
|
import http from 'http'
|
|
3
3
|
import request from 'supertest'
|
|
4
|
+
import { App } from 'supertest/types.js'
|
|
4
5
|
import URL, { UrlWithStringQuery } from 'url'
|
|
5
6
|
|
|
6
7
|
// NOTE: this is not original code.
|
|
@@ -28,7 +29,7 @@ class Supersession {
|
|
|
28
29
|
|
|
29
30
|
// eslint-disable-next-line
|
|
30
31
|
const callback = server.koaApp.callback()
|
|
31
|
-
this.agent = request.agent(callback, options)
|
|
32
|
+
this.agent = request.agent(callback as App, options)
|
|
32
33
|
|
|
33
34
|
// eslint-disable-next-line
|
|
34
35
|
const app = http.createServer(callback)
|