[security_solution] Fix @grep tags in Cypress (#164644)

## Summary

`@cypress/grep` is just reading the file as text, so it's not capable of
evaluating the variables, because of that, today we are running all the
spec files, and that means that we are setting up a new stack just to
stop it a few seconds later after grep skips the spec file

https://github.com/cypress-io/cypress/blob/develop/npm/grep/src/plugin.js#L117

With variable:
<img width="1219" alt="Zrzut ekranu 2023-08-23 o 23 06 30"
src="97b6fdaa-a03a-4a4f-bbdc-97da8e1788ce">

With string:
<img width="2074" alt="Zrzut ekranu 2023-08-23 o 23 06 04"
src="1f48d20a-3a1a-4ded-aa47-493781a4758b">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Patryk Kopyciński 2023-08-25 14:22:04 +02:00 committed by GitHub
parent b83585b844
commit 4180a1a105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
169 changed files with 681 additions and 897 deletions

1
typings/index.d.ts vendored
View file

@ -22,3 +22,4 @@ declare module 'monaco-editor/esm/vs/basic-languages/css/css';
declare module 'monaco-editor/esm/vs/basic-languages/yaml/yaml';
declare module 'find-cypress-specs';
declare module '@cypress/grep/src/plugin';