Skip to content

test: fix test:unit#4989

Merged
straker merged 1 commit into
developfrom
fix-test-unit
Jan 13, 2026
Merged

test: fix test:unit#4989
straker merged 1 commit into
developfrom
fix-test-unit

Conversation

@straker

@straker straker commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Running npm run test:unit results in loads of failures. After racking my brain about why, I remembered I had a similar problem in my fixing npm run test:debug pr where resetting the memoize functions results in them not being able to clear the cache between tests. Turns out that was the issue here.

Note: this isn't a problem in our pr runs or nightly tests because we either call npm run: test:unit:<name> directly or run npm test which runs all the tests in turn. This only happens when running npm run test:unit since the browser doesn't close between test types.

@straker straker requested a review from a team as a code owner January 12, 2026 21:00
@straker straker changed the title tests: fix test:unit test: fix test:unit Jan 12, 2026
@straker straker merged commit 8541f2c into develop Jan 13, 2026
23 of 24 checks passed
@straker straker deleted the fix-test-unit branch January 13, 2026 15:04
WilcoFiers pushed a commit that referenced this pull request Mar 30, 2026
Running `npm run test:unit` results in loads of failures. After racking
my brain about why, I remembered I had a similar problem in my [fixing
`npm run test:debug`
pr](#4769) where resetting the
memoize functions results in them not being able to clear the cache
between tests. Turns out that was the issue here.

Note: this isn't a problem in our pr runs or nightly tests because we
either call `npm run: test:unit:<name>` directly or run `npm test` which
runs all the tests in turn. This only happens when running `npm run
test:unit` since the browser doesn't close between test types.
straker added a commit that referenced this pull request Mar 30, 2026
Running `npm run test:unit` results in loads of failures. After racking
my brain about why, I remembered I had a similar problem in my [fixing
`npm run test:debug`
pr](#4769) where resetting the
memoize functions results in them not being able to clear the cache
between tests. Turns out that was the issue here.

Note: this isn't a problem in our pr runs or nightly tests because we
either call `npm run: test:unit:<name>` directly or run `npm test` which
runs all the tests in turn. This only happens when running `npm run
test:unit` since the browser doesn't close between test types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants