File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -61,3 +61,26 @@ executable cardano-wasm
6161 build-depends :
6262 ghc-experimental,
6363 utf8-string,
64+
65+ test-suite cardano-wasm-test
66+ import : project-config
67+ hs-source-dirs : test
68+ main-is : cardano-wasm-test.hs
69+ type : exitcode-stdio-1.0
70+ build-depends :
71+ hedgehog,
72+ hedgehog-extras,
73+ tasty,
74+ tasty-hedgehog,
75+
76+ ghc-options :
77+ -threaded
78+ -rtsopts
79+ "-with-rtsopts=-N -T"
80+
81+ build-tool-depends :
82+ cardano-wasm :cardano-wasm,
83+ tasty-discover :tasty-discover,
84+
85+ other-modules :
86+ Test.Golden.Cardano.Wasm.TypeScript
Original file line number Diff line number Diff line change 1+ module Test.Golden.Cardano.Wasm.TypeScript where
2+
3+ import Hedgehog (Property )
4+ import Hedgehog.Extras (defaultExecConfig , exec )
5+ import Hedgehog.Extras qualified as H
6+
7+ hprop_cardano_wasm_typescript_declarations_match_generated :: Property
8+ hprop_cardano_wasm_typescript_declarations_match_generated =
9+ H. propertyOnce $ do
10+ result <- exec defaultExecConfig " cardano-wasm" []
11+ H. diffVsGoldenFile result " example/cardano-api.d.ts"
Original file line number Diff line number Diff line change 1+ {-# OPTIONS_GHC -F -pgmF tasty-discover -optF --hide-successes #-}
You can’t perform that action at this time.
0 commit comments