Skip to content

Commit

Permalink
chore: fix deprecated (#3234)
Browse files Browse the repository at this point in the history
* chore: fix deprecated

* fix: vitest config

---------

Co-authored-by: Kyrie Lin <[email protected]>
  • Loading branch information
liweijie0812 and honkinglin authored Nov 28, 2024
1 parent feaabca commit 5dd6d10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vitest.config.ts → vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import { defineConfig } from 'vitest/config';
import { InlineConfig } from 'vitest';
import { InlineConfig } from 'vitest/node';

// 单元测试相关配置
const testConfig: InlineConfig = {
Expand All @@ -11,8 +11,8 @@ const testConfig: InlineConfig = {
globals: true,
environment: 'jsdom',
testTimeout: 16000,
transformMode: {
web: [/\.[jt]sx$/],
testTransformMode: {
web: ['\\.[jt]sx$'],
},
coverage: {
provider: 'istanbul',
Expand Down

0 comments on commit 5dd6d10

Please sign in to comment.