Skip to content

Commit ff39368

Browse files
authored
[AAWF-340] Use the built packages and generate api mappings during runtime (#2186)
* generate api info during runtime * basic support * use file loading instead * use new ApiInfo typing * profile * add api mappings * format * move typing info to runtime * use typinginfo from imported * remove dead code * build workspace * bump ts and licenses * bump node * lint * lint * fix test run and remove build from the bdd-runner * hide behind flag * add env var support
1 parent 0acbd31 commit ff39368

File tree

14 files changed

+797
-418
lines changed

14 files changed

+797
-418
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ __pycache__
3131
!.yarn/releases
3232
!.yarn/sdks
3333
!.yarn/versions
34+
35+
# Ignore generated api_info.ts file
36+
private/bdd_runner/src/support/api_info.ts

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ repos:
1212
entry: bash -c "COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable && yarn install && yarn lint:fix"
1313
stages: [manual]
1414
pass_filenames: false
15-
language_version: "21.7.3"
15+
language_version: "22.15.0"
1616
- id: format
1717
name: Format code
1818
language: node
1919
entry: bash -c "COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable && yarn install && yarn format"
2020
stages: [manual]
2121
pass_filenames: false
22-
language_version: "21.7.3"
22+
language_version: "22.15.0"

LICENSE-3rdparty.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ loglevel,MIT,Copyright (c) 2013 Tim Perry
2525
zstd.ts,BSD-2-Clause,Copyright (c) [2021] [Beeno Tung (Tung Cheung Leong)]
2626
commander,MIT,(c) 2011 TJ Holowaychuk
2727
typescript-eslint,MIT,2019 typescript-eslint and other contributors
28+
ts-morph,MIT,2017 David Sherret

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@
2727
],
2828
"scripts": {
2929
"check-licenses": "node bin/check-licenses.js",
30-
"build": "yarn workspaces foreach -Ap run build",
30+
"build": "yarn workspaces foreach -Apt run build",
3131
"lint": "eslint --ext .ts packages/* services/*",
3232
"lint:fix": "yarn lint --fix",
3333
"format": "prettier --write --ignore-unknown '**.{js,ts}'",
34-
"bdd-test": "yarn workspace bdd-runner run start --working-dir \"$(pwd)\" \"features/v*/*.feature\""
34+
"bdd-test": "yarn workspace bdd-runner run start --working-dir \"$(pwd)\" \"features/v*/*.feature\"",
35+
"bdd-test:built": "yarn workspace bdd-runner run start --working-dir \"$(pwd)\" --built-packages \"features/v*/*.feature\"",
36+
"bdd-test:profile": "yarn workspace bdd-runner run start:profile --working-dir \"$(pwd)\" \"features/v*/*.feature\"",
37+
"bdd-test:profile:built": "yarn workspace bdd-runner run start:profile --working-dir \"$(pwd)\" --built-packages \"features/v*/*.feature\""
3538
},
3639
"devDependencies": {
3740
"eslint": "^9.23.0",

private/bdd_runner/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"typings": "./dist/index.d.ts",
1313
"bin": "./dist/index.js",
1414
"scripts": {
15-
"build": "tsc",
16-
"start": "ts-node src/index.ts"
15+
"start": "ts-node src/index.ts",
16+
"start:profile": "node --prof -r ts-node/register src/index.ts"
1717
},
1818
"dependencies": {
19-
"@cucumber/cucumber": "^9.2.0",
20-
"@cucumber/messages": "^22.0.0",
19+
"@cucumber/cucumber": "^11.2.0",
20+
"@cucumber/messages": "^27.2.0",
2121
"@datadog/datadog-api-client": "^2.0.0-beta.0",
2222
"@pollyjs/adapter-node-http": "^6.0.5",
2323
"@pollyjs/core": "^6.0.5",
@@ -28,7 +28,8 @@
2828
"chai": "^4.3.7",
2929
"chai-quantifiers": "^1.0.17",
3030
"commander": "^13.1.0",
31-
"dd-trace": "^4.3.0",
31+
"dd-trace": "^5.49.0",
32+
"ts-morph": "^25.0.1",
3233
"ts-node": "^10.9.1",
3334
"zstd.ts": "^1.1.3"
3435
},

0 commit comments

Comments
 (0)