We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf62f3f commit 2dd0367Copy full SHA for 2dd0367
1 file changed
scripts/tests/contract.sh
@@ -4,7 +4,11 @@ set -euo pipefail
4
5
cd "$(git rev-parse --show-toplevel)"
6
7
-# Ensure we have the latest schema package matching our version specifier
8
-npm update @nhsdigital/nhs-notify-event-schemas-status-published
+if [[ $(npm outdated @nhsdigital/nhs-notify-event-schemas-status-published) ]]; then
+ echo "The provider schema package (@nhsdigital/nhs-notify-event-schemas-status-published) is outdated."
9
+ echo "Please run \`npm update @nhsdigital/nhs-notify-event-schemas-status-published\` to update to the latest version and re-run."
10
+ echo
11
+ exit 1
12
+fi
13
14
npm run test:contract
0 commit comments