diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-11-09 15:23:49 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-11-09 16:12:48 -0500 |
| commit | 73d79002fe6018ab12457b37bdaeb76ff2800213 (patch) | |
| tree | cc2c6a66617e573f55c37c827dd0d757fd4507e5 /vite.config.js | |
| parent | b7a3e888e7451a5ca11522074379c33c6f94aecc (diff) | |
Update (most) Node dependencies.
The `jsdom` upgrade entails upgrading Node, as something changed internally to jsdom in how it imports other modules.
Upgrading vitest caused the details of some of our test cases to change, but the semantics of the affected tests are the same. They also split resetting mocks from resetting mocks' behaviours, which required a small config change to preserve our tests' correctness.
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js index a825b5c..643e78c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,6 +10,7 @@ export default defineConfig({ // If not all your files should have this environment, you can use a // `// @vitest-environment jsdom` comment at the top of the test files instead. environment: 'jsdom', + clearMocks: true, restoreMocks: true, coverage: { thresholds: { |
