Skip to content

Commit

Permalink
afterEach to allow side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Dec 17, 2024
1 parent 4eeb0b5 commit cc007ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ aliases:
yarn why lmdb-store
- run:
name: Run tests
command: yarn jest --ci --runInBand --detectOpenHandles $(yarn -s jest --listTests | sed 's/\/home\/circleci\/project\///g' | circleci tests split)
command: yarn jest --ci --runInBand $(yarn -s jest --listTests | sed 's/\/home\/circleci\/project\///g' | circleci tests split)
environment:
NODE_OPTIONS: --max-old-space-size=2048
GENERATE_JEST_REPORT: "true"
Expand Down
4 changes: 4 additions & 0 deletions packages/gatsby/src/state-machines/__tests__/develop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ describe(`the top-level develop state machine`, () => {
resetAllMocks()
})

afterEach(async () => {
await tick()
})

it(`initialises`, async () => {
const service = interpret(machine)
service.start()
Expand Down

0 comments on commit cc007ec

Please sign in to comment.