Skip to content

Commit df70c75

Browse files
committed
test: add test on no-unit-tests too
1 parent 61b7393 commit df70c75

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

e2e-test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ console.log('-- Target bundler: ' + targetBundler);
8484
const transpilers = ['babel', 'typescript'];
8585
const cssModes = ['', 'shadow-dom-open', 'shadow-dom-closed', 'css-module'];
8686
const cssProcessors = ['css', 'sass', 'less'];
87-
const testFrameworks = ['jasmine', 'tape', 'mocha'];
87+
const testFrameworks = ['jasmine', 'tape', 'mocha', 'no-unit-tests'];
8888
const e2eFrameworks = ['cypress'];
8989

9090
function getServerRegex(features) {
@@ -119,6 +119,7 @@ skeletons.forEach((features, i) => {
119119
const title = `App: ${i + 1}/${skeletons.length} ${appName}`;
120120
const serverRegex = getServerRegex(features);
121121
const startCommand = getStartCommand(features);
122+
const hasUnitTests = !features.includes('no-unit-tests');
122123

123124
test.serial(title, async t => {
124125
console.log(title);
@@ -132,8 +133,10 @@ skeletons.forEach((features, i) => {
132133
console.log('-- yarn install');
133134
await run('yarn install');
134135

135-
console.log('-- npm test');
136-
await run('npm test');
136+
if (hasUnitTests) {
137+
console.log('-- npm test');
138+
await run('npm test');
139+
}
137140

138141
console.log('-- npm run build');
139142
await run('npm run build', null,

0 commit comments

Comments
 (0)