Add the extra spago file "test.dhall" for testing

This commit is contained in:
Adrian Sieber 2021-03-19 22:48:39 +00:00
parent 627d1f3e95
commit 7c74f69085
3 changed files with 8 additions and 5 deletions

View File

@ -6,7 +6,7 @@
"contributors": [],
"main": "main.js",
"scripts": {
"test": "spago test",
"test": "spago -x test.dhall test",
"postinstall": "spago build"
},
"devDependencies": {},

View File

@ -3,17 +3,14 @@
, dependencies =
[ "argonaut-codecs"
, "argonaut-core"
, "console"
, "effect"
, "foreign"
, "functions"
, "ordered-collections"
, "psci-support"
, "spec"
, "unsafe-coerce"
]
, packages =
./packages.dhall
, sources =
[ "src/**/*.purs", "test/**/*.purs" ]
[ "src/**/*.purs" ]
}

6
test.dhall Normal file
View File

@ -0,0 +1,6 @@
let conf = ./spago.dhall
in conf // {
sources = conf.sources # [ "test/**/*.purs" ],
dependencies = conf.dependencies # [ "console", "psci-support", "spec" ]
}