File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
scenario-elm-pages-incompatible-wire/app/Route Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ makeDev :: FilePath -> FilePath -> IO ()
79
79
makeDev root path = do
80
80
debug $ " 🏗 lamdera make " <> root <> " /" <> path
81
81
82
+ absRoot <- Dir. makeAbsolute root
83
+
82
84
r <- async $
83
- Dir. withCurrentDirectory root $
85
+ Dir. withCurrentDirectory absRoot $
84
86
Make. run [path] $
85
87
Make. Flags
86
88
{ _debug = True
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE OverloadedStrings #-}
2
+
1
3
module Test.Ext.ElmPages.Check where
2
4
3
5
import EasyTest
4
6
import Test.Helpers
5
7
8
+ import Lamdera
9
+ import Lamdera.Compile
6
10
7
11
all = EasyTest. run suite
8
12
9
13
10
14
suite :: Test ()
11
15
suite = tests $
12
16
[ scope " isWireCompatible" $ do
13
- expectEqual 1 1
14
-
17
+ actual <- catchOutput $
18
+ Lamdera.Compile. makeDev " ./test/scenario-elm-pages-incompatible-wire/.elm-pages " " Main.elm "
15
19
20
+ expectTextContains actual
21
+ " PageData:\\ n\\ n- must not contain functions"
16
22
]
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ type alias RouteParams =
25
25
26
26
27
27
type alias Data =
28
- {}
28
+ { unserialisableValue : Int -> Int }
29
29
30
30
31
31
route : StatelessRoute RouteParams Data
@@ -39,7 +39,7 @@ route =
39
39
40
40
data : DataSource Data
41
41
data =
42
- DataSource . succeed Data
42
+ DataSource . succeed <| Data ( \ i -> i )
43
43
44
44
45
45
head :
You can’t perform that action at this time.
0 commit comments