We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb22e8 commit 3dc79c4Copy full SHA for 3dc79c4
tests/testthat/_snaps/describe.md
@@ -1,3 +1,17 @@
1
+# snapshot tests in describe
2
+
3
+ Code
4
+ 1 + 1
5
+ Output
6
+ [1] 2
7
8
+# snapshot tests in describe / and in it
9
10
11
12
13
14
15
# has to have a valid description for the block
16
17
Code
tests/testthat/test-describe.R
@@ -13,6 +13,17 @@ describe("describe", {
})
+test_that("can write snaphot tests", {
+ local_description_set()
18
19
+ describe("snapshot tests in describe", {
20
+ expect_snapshot(1 + 1)
21
+ it("and in it", {
22
23
+ })
24
25
+})
26
27
test_that("unimplemented specs generate skips", {
28
expectations <- capture_expectations({
29
it("can have not yet implemented specs", {
0 commit comments