Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit d73f689

Browse files
fix: 🐛 headless test not working
1 parent 679998c commit d73f689

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
"commit": "git-cz",
1414
"release:first": "npm run release -- --first-release",
1515
"build:lib": "ng build ngx-errors --prod",
16-
"test:lib": "ng test ngx-errors --code-coverage",
16+
"test:lib": "ng test ngx-errors",
17+
"test:lib:headless": "cross-env CI=true npm run test:lib",
18+
"test:lib:coverage": "npm run test:lib -- --code-coverage",
1719
"postbuild:lib": "copyfiles README.md logo.png dist/ngx-errors",
18-
"release": "cd projects/ngx-errors && standard-version --infile ../../CHANGELOG.md",
19-
"test:lib:headless": "cross-env CI=true npm run test:lib"
20+
"release": "cd projects/ngx-errors && standard-version --infile ../../CHANGELOG.md"
2021
},
2122
"private": true,
2223
"dependencies": {

projects/ngx-errors/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ module.exports = function (config) {
2626
colors: true,
2727
logLevel: config.LOG_INFO,
2828
autoWatch: true,
29-
browsers: ['Chrome'],
30-
singleRun: false,
29+
browsers: [process.env.CI ? 'ChromeHeadless' : 'Chrome'],
30+
singleRun: process.env.CI,
3131
restartOnFileChange: true,
3232
});
3333
};

0 commit comments

Comments
 (0)