File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -61,17 +61,16 @@ if (local && (components.length > 1 || all)) {
61
61
process . exit ( 1 ) ;
62
62
}
63
63
64
- const bazelBinary = `yarn -s ${ watch ? 'ibazel' : 'bazel' } ` ;
65
- const testTargetName =
66
- `unit_tests_${ local ? 'local' : firefox ? 'firefox-local' : 'chromium-local' } ` ;
64
+ const browserName = firefox ? 'firefox-local' : 'chromium-local' ;
65
+ const bazelBinary = `${ watch ? 'ibazel' : 'bazel' } ` ;
67
66
const configFlag = viewEngine ? '--config=view-engine' : '' ;
68
67
69
68
// If `all` has been specified as component, we run tests for all components
70
- // in the repository. The `--firefox` flag can be still specified.
69
+ // in the repository. The `--firefox` and `--no-watch` flags can be still specified.
71
70
if ( all ) {
72
71
shelljs . exec (
73
- `${ bazelBinary } test //src/... --test_tag_filters=-e2e,- browser:${ testTargetName } ` +
74
- `--build_tag_filters=- browser:${ testTargetName } --build_tests_only ${ configFlag } ` ) ;
72
+ `${ bazelBinary } test //src/... --test_tag_filters=-e2e,browser:${ browserName } ` +
73
+ `--build_tag_filters=browser:${ browserName } --build_tests_only ${ configFlag } ` ) ;
75
74
return ;
76
75
}
77
76
@@ -87,6 +86,7 @@ if (!components.length) {
87
86
process . exit ( 1 ) ;
88
87
}
89
88
89
+ const testTargetName = `unit_tests_${ local ? 'local' : browserName } ` ;
90
90
const bazelAction = local ? 'run' : 'test' ;
91
91
const testLabels = components
92
92
. map ( t => correctTypos ( t ) )
You can’t perform that action at this time.
0 commit comments