Skip to content

cannot use beforeAll #2

@srghma-old

Description

@srghma-old

2024-10-10-12pm-18-27-screenshot

https://github.com/purescript-contrib/chnglg/blob/e1f385dc41934cf4711ef8e12add2c1e8c9ef77e/test/Test/Main.purs#L123

main :: Effect Unit
main = runAff_ (either throwException pure) do
  void $ join $ runSpecAndExitProcess' ({ defaultConfig: defaultConfig { timeout = Just $ Milliseconds 20_000.0 }, parseCLIOptions: true }) [ consoleReporter ] $ sequential spec


  describe "Update command" do
    aroundAll cloneTestRepo cleanupTestRepo do
      after_ gitCleanReset do


aroundAll
  :: forall m g i a
   . MonadEffect m
  => MonadAff g
  => MonadError Error g
  => g i
  -> (i → g Unit)
  -> SpecT g i m a
  -> SpecT g Unit m a
aroundAll setup cleanup use =
  beforeAll setup $ afterAll cleanup $ use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions