Skip to content

Commit

Permalink
Update node deps to next breaking release (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez authored Jan 14, 2024
1 parent c7d6a22 commit 68b6446
Show file tree
Hide file tree
Showing 30 changed files with 590 additions and 450 deletions.
1 change: 0 additions & 1 deletion core/spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ package:
- newtype
- node-buffer
- node-fs
- node-fs-aff
- node-path
- node-process
- ordered-collections
Expand Down
4 changes: 2 additions & 2 deletions core/src/Log.purs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ logError l = log { level: LogError, content: Ansi.foreground Ansi.Red (toDoc l)
die :: forall a b m u. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => a -> m u
die msg = do
logFailure msg
Effect.liftEffect $ Process.exit 1
Effect.liftEffect $ Process.exit' 1

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

justOrDieWith :: forall a b m x. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => Maybe x -> a -> m x
justOrDieWith value msg = case value of
Expand Down
1 change: 0 additions & 1 deletion docs-search/index/spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package:
- newtype
- node-buffer
- node-fs
- node-fs-aff
- node-process
- ordered-collections
- prelude
Expand Down
2 changes: 1 addition & 1 deletion docs-search/index/src/Docs/Search/IndexBuilder.purs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ withExisting file f = do
logAndExit :: forall a. String -> Effect a
logAndExit message = do
log message
Process.exit 1
Process.exit' 1

showGlobs :: Array String -> String
showGlobs = Array.intercalate ", "
Expand Down
17 changes: 13 additions & 4 deletions docs-search/index/test/Docs/Search/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@ module Test.Docs.Search.Main where

import Prelude

import Data.Identity (Identity(..))
import Data.Maybe (Maybe(..))
import Data.Newtype (un)
import Effect (Effect)
import Effect.Aff (launchAff_)
import Effect.Aff (Milliseconds(..), launchAff_)
import Test.Declarations as Declarations
import Test.IndexBuilder as IndexBuilder
import Test.ModuleIndex as ModuleIndex
import Test.ModuleParser as ModuleParser
import Test.TypeQuery as TypeQuery
import Test.Spec (Spec)
import Test.Spec.Reporter.Console (consoleReporter)
import Test.Spec.Runner (runSpec)
import Test.Spec.Runner (Config, defaultConfig, runSpecT)
import Test.TypeQuery as TypeQuery

testConfig :: Config
testConfig = defaultConfig
{ slow = Milliseconds 2_000.0
, timeout = Just (Milliseconds 5_000.0)
}

main :: Effect Unit
main = launchAff_ $ runSpec [ consoleReporter ] mainTest
main = launchAff_ $ void $ un Identity $ runSpecT testConfig [ consoleReporter ] mainTest

mainTest :: Spec Unit
mainTest = do
Expand Down
Loading

0 comments on commit 68b6446

Please sign in to comment.