From 8d896af5142d7d9aa2be5cbda2952abd6190a9ae Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Wed, 10 Jul 2024 05:54:03 +0200 Subject: [PATCH] fix(package.json): fix test run script --- .github/workflows/tests.yml | 2 +- package.json | 2 ++ projects/lib/package.json | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cd5fc0a..fc27451 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,4 +18,4 @@ jobs: - uses: actions/checkout@v2 - run: npm install - - run: npm run test + - run: npm run test:headless:singleRun \ No newline at end of file diff --git a/package.json b/package.json index 2845232..646e386 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,8 @@ "start": "node node_modules/@angular/cli/bin/ng serve", "build": "node node_modules/@angular/cli/bin/ng build --configuration production", "test": "node node_modules/@angular/cli/bin/ng test lib", + "test:headless": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadless", + "test:headless:singleRun": "node node_modules/@angular/cli/bin/ng test --no-watch --no-progress --browsers=ChromeHeadless lib", "release:minor": "cd ./projects/lib/ && npm version minor", "release:major": "cd ./projects/lib/ && npm version major", "release:patch": "cd ./projects/lib/ && npm version patch", diff --git a/projects/lib/package.json b/projects/lib/package.json index 492a4af..1f5991a 100644 --- a/projects/lib/package.json +++ b/projects/lib/package.json @@ -21,6 +21,7 @@ "angular 15", "angular 16", "angular 17", + "angular 18", "fit text", "responsive text", "responsive font size", @@ -29,8 +30,8 @@ "author": "Lorenzo Iovino", "license": "MIT", "peerDependencies": { - "@angular/common": ">=17.0.0", - "@angular/core": ">=17.0.0" + "@angular/common": ">=18.0.0", + "@angular/core": ">=18.0.0" }, "dependencies": { "tslib": "^2.3.0"