skeletest 0.4.0 → 0.4.1
raw patch · 4 files changed
+8/−5 lines, 4 files
Files
- CHANGELOG.md +5/−0
- skeletest.cabal +1/−1
- src/Skeletest/Internal/Snapshot.hs +1/−3
- src/Skeletest/Internal/Spec.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+## v0.4.1++Bug fixes:+* Fix snapshots for manual tests detected as outdated when no test selections are specified on the command line+ ## v0.4.0 New features:
skeletest.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0 name: skeletest-version: 0.4.0+version: 0.4.1 synopsis: Batteries-included, opinionated test framework description: Batteries-included, opinionated test framework. See README.md for more details. homepage: https://github.com/brandonchinn178/skeletest#readme
src/Skeletest/Internal/Snapshot.hs view
@@ -176,9 +176,7 @@ snapshotsHook :: Hooks snapshotsHook = defaultHooks- { modifySpecRegistry = Hooks.mkPreHook_ $ \_ registry -> do- -- Collect before the applyTestSelections hook to check for snapshots- -- that don't correspond to any tests anymore+ { modifySpecRegistry = Hooks.runEarly . Hooks.mkPreHook_ $ \_ registry -> do modifyIORef' snapshotInfoStoreRef $ \store -> store { allSnapshotTestIds =
src/Skeletest/Internal/Spec.hs view
@@ -323,7 +323,7 @@ manualTestsHook :: Hooks manualTestsHook = defaultHooks- { modifySpecRegistry = Hooks.mkPreHook $ \ctx inp ->+ { modifySpecRegistry = Hooks.runLate . Hooks.mkPreHook $ \ctx inp -> pure $ case ctx.testTargets of -- only hide manual tests when no selections are specified