Skip to content

Commit 68b6446

Browse files
Update node deps to next breaking release (#1129)
1 parent c7d6a22 commit 68b6446

30 files changed

+590
-450
lines changed

core/spago.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ package:
2424
- newtype
2525
- node-buffer
2626
- node-fs
27-
- node-fs-aff
2827
- node-path
2928
- node-process
3029
- ordered-collections

core/src/Log.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ logError l = log { level: LogError, content: Ansi.foreground Ansi.Red (toDoc l)
152152
die :: forall a b m u. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => a -> m u
153153
die msg = do
154154
logFailure msg
155-
Effect.liftEffect $ Process.exit 1
155+
Effect.liftEffect $ Process.exit' 1
156156

157157
-- | Same as `die`, but with multiple failures
158158
die' :: forall a b m u. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => Array a -> m u
159159
die' msgs = do
160160
_ <- traverse logFailure msgs
161-
Effect.liftEffect $ Process.exit 1
161+
Effect.liftEffect $ Process.exit' 1
162162

163163
justOrDieWith :: forall a b m x. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => Maybe x -> a -> m x
164164
justOrDieWith value msg = case value of

docs-search/index/spago.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ package:
2121
- newtype
2222
- node-buffer
2323
- node-fs
24-
- node-fs-aff
2524
- node-process
2625
- ordered-collections
2726
- prelude

docs-search/index/src/Docs/Search/IndexBuilder.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ withExisting file f = do
447447
logAndExit :: forall a. String -> Effect a
448448
logAndExit message = do
449449
log message
450-
Process.exit 1
450+
Process.exit' 1
451451

452452
showGlobs :: Array String -> String
453453
showGlobs = Array.intercalate ", "

docs-search/index/test/Docs/Search/Main.purs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,28 @@ module Test.Docs.Search.Main where
22

33
import Prelude
44

5+
import Data.Identity (Identity(..))
6+
import Data.Maybe (Maybe(..))
7+
import Data.Newtype (un)
58
import Effect (Effect)
6-
import Effect.Aff (launchAff_)
9+
import Effect.Aff (Milliseconds(..), launchAff_)
710
import Test.Declarations as Declarations
811
import Test.IndexBuilder as IndexBuilder
912
import Test.ModuleIndex as ModuleIndex
1013
import Test.ModuleParser as ModuleParser
11-
import Test.TypeQuery as TypeQuery
1214
import Test.Spec (Spec)
1315
import Test.Spec.Reporter.Console (consoleReporter)
14-
import Test.Spec.Runner (runSpec)
16+
import Test.Spec.Runner (Config, defaultConfig, runSpecT)
17+
import Test.TypeQuery as TypeQuery
18+
19+
testConfig :: Config
20+
testConfig = defaultConfig
21+
{ slow = Milliseconds 2_000.0
22+
, timeout = Just (Milliseconds 5_000.0)
23+
}
1524

1625
main :: Effect Unit
17-
main = launchAff_ $ runSpec [ consoleReporter ] mainTest
26+
main = launchAff_ $ void $ un Identity $ runSpecT testConfig [ consoleReporter ] mainTest
1827

1928
mainTest :: Spec Unit
2029
mainTest = do

0 commit comments

Comments
 (0)