Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit d1ade7a

Browse files
committed
add tests for negative grep
1 parent aae136f commit d1ade7a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ jobs:
7373
--env grep=hello \
7474
--expect ./expects/hello.json
7575
76+
- name: Run tests without "hello" 🧪
77+
run: |
78+
npx cypress-expect run \
79+
--env grep=-hello \
80+
--expect-exactly ./expects/no-hello.json
81+
7682
# check space character
7783
- name: Run tests with "works 2" 🧪
7884
run: |

expects/no-hello.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hello world": "pending",
3+
"works": "passed",
4+
"works 2 @tag1": "passed",
5+
"works 2 @tag1 @tag2": "passed",
6+
"works @tag2": "passed"
7+
}

0 commit comments

Comments
 (0)