Commit 8541f2c
authored
test: fix test:unit (#4989)
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.1 parent a167eb9 commit 8541f2c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
0 commit comments