Skip to content

Commit 96e3fee

Browse files
cpyle0819rlhagerm
authored andcommitted
JavaScript (v3): Add compile step to tests for TS type checks.
1 parent ad32a6f commit 96e3fee

File tree

2 files changed

+3
-1
lines changed
  • javascriptv3
    • example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client

2 files changed

+3
-1
lines changed

javascriptv3/example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite --host 0.0.0.0",
8+
"compile": "tsc",
89
"build": "tsc && vite build",
910
"preview": "vite preview"
1011
},

javascriptv3/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "root",
33
"private": true,
44
"scripts": {
5-
"test": "npm run test --workspaces --if-present -- --silent",
5+
"compile": "npm run compile --workspaces --if-present",
6+
"test": "npm run compile && npm run test --workspaces --if-present -- --silent",
67
"integration-test": "npm run integration-test --workspaces --if-present -- --silent; exit_code=$?; npm run merge-test-results; npm run log-tests; exit ${exit_code:-99}",
78
"merge-test-results": "jrm test-results.xml \"**/test_results/**/*.junit.xml\"",
89
"log-tests": "cat test-results.xml",

0 commit comments

Comments
 (0)