|
73 | 73 | "@types/mocha": "^10.0.2", |
74 | 74 | "@types/node": "^22.13.10", |
75 | 75 | "@types/rimraf": "^3.0.2", |
| 76 | + "@types/supertest": "^6.0.3", |
76 | 77 | "@types/uuid": "^10.0.0", |
77 | 78 | "@types/ws": "^8.2.0", |
78 | 79 | "@typescript-eslint/eslint-plugin": "^5.38.1", |
|
92 | 93 | "nyc": "^15.1.0", |
93 | 94 | "rimraf": "^3.0.2", |
94 | 95 | "simple-git": "^3.16.0", |
| 96 | + "supertest": "^7.1.4", |
95 | 97 | "ts-node": "^10.9.1", |
96 | 98 | "tsc-alias": "^1.8.16", |
97 | 99 | "tsconfig-paths": "^4.2.0", |
|
182 | 184 | "posttest": "rimraf ./test.asyncapi-cli", |
183 | 185 | "postinstall": "node ./scripts/enableAutoComplete.js", |
184 | 186 | "test": "npm run cli:test && npm run action:test", |
185 | | - "cli:test": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/**/*.test.ts\"", |
186 | | - "unit:test": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/unit/**/*.test.ts\"", |
187 | | - "test:one": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000", |
| 187 | + "cli:test": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" NODE_CONFIG_DIR=\"./src/apps/api/configs\" nyc --extension .ts mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/**/*.test.ts\"", |
| 188 | + "unit:test": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" NODE_CONFIG_DIR=\"./src/apps/api/configs\" nyc --extension .ts mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/unit/**/*.test.ts\"", |
| 189 | + "test:one": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" NODE_CONFIG_DIR=\"./src/apps/api/configs\" nyc --extension .ts mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000", |
188 | 190 | "get-version": "echo $npm_package_version", |
189 | 191 | "createhook": "oclif generate hook myhook --event=command_not_found", |
190 | 192 | "createhookinit": "oclif generate hook inithook --event=init", |
|
0 commit comments