Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed Jul 31, 2024
1 parent d0d4b6e commit 9c33f4e
Show file tree
Hide file tree
Showing 17 changed files with 3,459 additions and 7,464 deletions.
5 changes: 2 additions & 3 deletions local/config/src/vitest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ export default defineConfig({
include,
coverage: {
reportsDirectory: './.coverage/unit',
exclude: ['**/*.env.*'],
},
poolOptions: {
threads: {
singleThread: true,
forks: {
singleFork: true,
},
},
},
Expand Down
1 change: 1 addition & 0 deletions local/config/src/vitest.new-jsdom.env.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { builtinEnvironments } from 'vitest/environments';

export default {
name: String(performance.now()),
...builtinEnvironments.jsdom,
Expand Down
5 changes: 1 addition & 4 deletions local/config/src/vitest.setup.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import matchers from '@testing-library/jest-dom/matchers';
import { expect } from 'vitest';
import '@testing-library/jest-dom/vitest';
import { mockAnimationApi, mockComputedStyles } from './mocks.js';

expect.extend(matchers);

mockAnimationApi();
mockComputedStyles();
Loading

0 comments on commit 9c33f4e

Please sign in to comment.