@forinda/kickjs-testing 1.7.0 → 2.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/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -6
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { Container, type AppAdapter, type AppModuleClass, type ModuleRoutes } from '@forinda/kickjs
|
|
3
|
-
import { Application } from '@forinda/kickjs
|
|
2
|
+
import { Container, type AppAdapter, type AppModuleClass, type ModuleRoutes } from '@forinda/kickjs';
|
|
3
|
+
import { Application } from '@forinda/kickjs';
|
|
4
4
|
/**
|
|
5
5
|
* Options for creating a test application.
|
|
6
6
|
* Disables helmet, cors, compression, and morgan by default.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAA2B,MAAM,iBAAiB,CAAA;AAEtE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;IACvB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAA;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC,cAAc,EAAE,CAAA;IACrC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC;IAC1E,GAAG,EAAE,WAAW,CAAA;IAChB,UAAU,EAAE,OAAO,CAAC,OAAO,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC,CAsCD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IACvC,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAA;IACxC,MAAM,EAAE,MAAM,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAA;CACnD,GAAG,cAAc,CASjB"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import i from "express";
|
|
2
|
-
import { Container as s } from "@forinda/kickjs
|
|
3
|
-
|
|
4
|
-
async function p(e) {
|
|
2
|
+
import { Application as d, Container as s } from "@forinda/kickjs";
|
|
3
|
+
async function o(e) {
|
|
5
4
|
let r;
|
|
6
5
|
e.isolated ? r = s.create() : (s.reset(), r = s.getInstance());
|
|
7
6
|
const t = new d({
|
|
@@ -19,7 +18,7 @@ async function p(e) {
|
|
|
19
18
|
container: r
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function u(e) {
|
|
23
22
|
return class {
|
|
24
23
|
register(t) {
|
|
25
24
|
e.register(t);
|
|
@@ -30,6 +29,6 @@ function c(e) {
|
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
o as createTestApp,
|
|
33
|
+
u as createTestModule
|
|
35
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forinda/kickjs-testing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Test utilities, TestModule builder, and helpers for KickJS applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kickjs",
|
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@forinda/kickjs
|
|
53
|
-
"@forinda/kickjs-http": "1.7.0"
|
|
52
|
+
"@forinda/kickjs": "2.0.0"
|
|
54
53
|
},
|
|
55
54
|
"peerDependencies": {
|
|
56
55
|
"express": "^5.1.0"
|