Skip to content

Commit 701fc91

Browse files
committed
test: ignore command-staged-with-config flaky test output (#1047)
1 parent ffc1638 commit 701fc91

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/cli/snap-tests-global/command-staged-with-config/snap.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@
2121

2222
> git add -A && git commit -m 'second'
2323
> printf 'eval("code");\n' > src/fail.js && git add src/fail.js
24-
[1]> vp staged # should fail when staged .js file has lint errors
25-
[STARTED] Backing up original state...
24+
[1]> vp staged > /dev/null 2>&1 # should fail when staged .js file has lint errors

packages/cli/snap-tests-global/command-staged-with-config/steps.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ignoredPlatforms": ["win32"],
23
"commands": [
34
{ "command": "git init", "ignoreOutput": true },
45
{ "command": "git add -A && git commit -m 'init'", "ignoreOutput": true },
@@ -12,6 +13,9 @@
1213
"command": "printf 'eval(\"code\");\\n' > src/fail.js && git add src/fail.js",
1314
"ignoreOutput": true
1415
},
15-
"vp staged # should fail when staged .js file has lint errors"
16+
{
17+
"command": "vp staged > /dev/null 2>&1 # should fail when staged .js file has lint errors",
18+
"ignoreOutput": true
19+
}
1620
]
1721
}

0 commit comments

Comments
 (0)