formbuilder-lhcforms 9.3.0 → 9.4.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formbuilder-lhcforms",
3
- "version": "9.3.0",
3
+ "version": "9.4.1",
4
4
  "description": "Build LHC-Forms and FHIR Questionnaires",
5
5
  "homepage": "https://github.com/lhncbc/formbuilder-lhcforms",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -9,6 +9,7 @@
9
9
  "url": "https://github.com/lhncbc/formbuilder-lhcforms"
10
10
  },
11
11
  "config": {
12
+ "testPortSecond": "9032",
12
13
  "testPort": "9031",
13
14
  "devPort": "9030"
14
15
  },
@@ -18,14 +19,21 @@
18
19
  "start-public": "node ./bin/start-public.js",
19
20
  "install-and-build": "npm install && npm run clean-build",
20
21
  "clean-build": "ng cache clean && npm ci && npm run build",
22
+ "build-with-test-html": "ng build --configuration prod_with_test_html",
21
23
  "create-version-file": "echo {\\\"version\\\": \\\"${npm_package_version}\\\"} > ./src/assets/version.json",
22
24
  "build": "npm run create-version-file && ng build --configuration production",
23
25
  "test": "npm run unit-test && npm run e2e:prod",
24
26
  "unit-test": "ng test --watch=false",
25
27
  "lint": "ng lint",
26
28
  "cy:verify": "cypress verify",
29
+ "cy-run": "cypress run --browser chrome --config baseUrl=http://localhost:${npm_package_config_testPort}",
27
30
  "e2e": "ng e2e",
28
- "e2e:prod": "ng run formbuilder-lhcforms:e2e:production",
31
+ "e2e:start-server": "npm run build-with-test-html && angular-http-server --silent --path ./dist/formbuilder-lhcforms -p ${npm_package_config_testPort}",
32
+ "e2e:start-second-server": "npm run build-with-test-html && angular-http-server --silent --path ./dist/formbuilder-lhcforms -p ${npm_package_config_testPortSecond}",
33
+ "pw-run": "npx playwright test",
34
+ "e2e:pw-run": "start-test e2e:start-server http://localhost:${npm_package_config_testPort} e2e:start-second-server http://localhost:${npm_package_config_testPortSecond} pw-run",
35
+ "e2e:prod": "start-test e2e:start-server http://localhost:${npm_package_config_testPort} e2e:start-second-server http://localhost:${npm_package_config_testPortSecond} cy-pw-run",
36
+ "cy-pw-run": "npm run cy-run && npm run pw-run",
29
37
  "postinstall": "ngcc"
30
38
  },
31
39
  "files": [
@@ -81,6 +89,7 @@
81
89
  "@angular/compiler-cli": "~15.2.4",
82
90
  "@angular/language-service": "~15.2.4",
83
91
  "@cypress/schematic": "^2.5.1",
92
+ "@playwright/test": "^1.42.1",
84
93
  "@types/hapi": "18.0.8",
85
94
  "@types/jasmine": "~4.3.1",
86
95
  "@types/jasminewd2": "~2.0.10",
@@ -102,6 +111,7 @@
102
111
  "karma-jasmine": "~4.0.2",
103
112
  "karma-jasmine-html-reporter": "^1.7.0",
104
113
  "postcss": "^8.3.0",
114
+ "start-server-and-test": "2.0.3",
105
115
  "ts-node": "~9.1.1",
106
116
  "typescript": "^4.8.4"
107
117
  }