Skip to content

Commit

Permalink
fix beforeEach hook not working
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Aug 18, 2024
1 parent a7bbb9b commit 807658d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/tw-merge.benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ describe('twMerge', () => {

if (process.env.CI) {
// codespeed tries to optimize function, before actual setup call - we need to adopt
beforeEach(setup)
beforeEach(() => {
twMerge = extendTailwindMerge({
cacheSize: isCached ? undefined : 0,
})

twMerge()
})
}

bench(
Expand Down

0 comments on commit 807658d

Please sign in to comment.