aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json6
-rw-r--r--pnpm-lock.yaml184
-rw-r--r--test/internal/bind-this-to-member-functions.spec.ts2
-rw-r--r--test/modules/finance.spec.ts2
-rw-r--r--test/scripts/apidocs/verify-jsdoc-tags.spec.ts2
-rw-r--r--vitest.config.ts2
6 files changed, 102 insertions, 96 deletions
diff --git a/package.json b/package.json
index 55a08294..834e7ce4 100644
--- a/package.json
+++ b/package.json
@@ -113,9 +113,9 @@
"@types/sanitize-html": "2.13.0",
"@types/semver": "7.5.8",
"@types/validator": "13.12.2",
- "@vitest/coverage-v8": "2.1.8",
+ "@vitest/coverage-v8": "3.0.5",
"@vitest/eslint-plugin": "1.1.25",
- "@vitest/ui": "2.1.8",
+ "@vitest/ui": "3.0.5",
"@vueuse/core": "12.2.0",
"commit-and-tag-version": "12.5.0",
"cypress": "14.0.1",
@@ -140,7 +140,7 @@
"typescript-eslint": "8.19.1",
"validator": "13.12.0",
"vitepress": "1.6.3",
- "vitest": "2.1.8",
+ "vitest": "3.0.5",
"vue": "3.5.13",
"vue-tsc": "2.2.0"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index cdd4b972..114a19c7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -33,14 +33,14 @@ importers:
specifier: 13.12.2
version: 13.12.2
'@vitest/coverage-v8':
- specifier: 2.1.8
- version: 2.1.8([email protected])
+ specifier: 3.0.5
+ version: 3.0.5([email protected])
'@vitest/eslint-plugin':
specifier: 1.1.25
'@vitest/ui':
- specifier: 2.1.8
- version: 2.1.8([email protected])
+ specifier: 3.0.5
+ version: 3.0.5([email protected])
'@vueuse/core':
specifier: 12.2.0
version: 12.2.0([email protected])
@@ -114,8 +114,8 @@ importers:
specifier: 1.6.3
vitest:
- specifier: 2.1.8
- version: 2.1.8(@types/[email protected])(@vitest/[email protected])([email protected])
+ specifier: 3.0.5
+ version: 3.0.5(@types/[email protected])(@vitest/[email protected])([email protected])
vue:
specifier: 3.5.13
version: 3.5.13([email protected])
@@ -225,8 +225,9 @@ packages:
resolution: {integrity: sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==}
engines: {node: '>=6.9.0'}
- resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
+ resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}
+ engines: {node: '>=18'}
'@colors/[email protected]':
resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}
@@ -1118,11 +1119,11 @@ packages:
vite: ^5.0.0 || ^6.0.0
vue: ^3.2.25
- '@vitest/[email protected]':
- resolution: {integrity: sha512-2Y7BPlKH18mAZYAW1tYByudlCYrQyl5RGvnnDYJKW5tCiO5qg3KSAy3XAxcxKz900a0ZXxWtKrMuZLe3lKBpJw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-zOOWIsj5fHh3jjGwQg+P+J1FW3s4jBu1Zqga0qW60yutsBtqEqNEJKWYh7cYn1yGD+1bdPsPdC/eL4eVK56xMg==}
peerDependencies:
- '@vitest/browser': 2.1.8
- vitest: 2.1.8
+ '@vitest/browser': 3.0.5
+ vitest: 3.0.5
peerDependenciesMeta:
'@vitest/browser':
optional: true
@@ -1140,39 +1141,39 @@ packages:
vitest:
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-nNIOqupgZ4v5jWuQx2DSlHLEs7Q4Oh/7AYwNyE+k0UQzG7tSmjPXShUikn1mpNGzYEN2jJbTvLejwShMitovBA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-7guJ/47I6uqfttp33mgo6ga5Gr1VnL58rcqYKyShoRK9ebu8T5Rs6HN3s1NABiBeVTdWNrwUMcHH54uXZBN4zA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-CLPNBFBIE7x6aEGbIjaQAX03ZZlBMaWwAjBdMkIf/cAn6xzLTiM3zYqO/WAbieEjsAZir6tO71mzeHZoodThvw==}
peerDependencies:
msw: ^2.4.9
- vite: ^5.0.0
+ vite: ^5.0.0 || ^6.0.0
peerDependenciesMeta:
msw:
optional: true
vite:
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-9HiSZ9zpqNLKlbIDRWOnAWqgcA7xu+8YxXSekhr0Ykab7PAYFkhkwoqVArPOtJhPmYeE2YHgKZlj3CP36z2AJQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-CjUtdmpOcm4RVtB+up8r2vVDLR16Mgm/bYdkGFe3Yj/scRfCpbSi2W/BDSDcFK7ohw8UXvjMbOp9H4fByd/cOA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-17ub8vQstRnRlIU5k50bG+QOMLHRhYPAna5tw8tYbj+jzjcspnwnwtPtiOlkuKC4+ixDPTuLZiqiWWQ2PSXHVg==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-BAiZFityFexZQi2yN4OX3OkJC6scwRo8EhRB0Z5HIGGgd2q+Nq29LgHU/+ovCtd0fOfXj5ZI6pwdlUmC5bpi8A==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-20T7xRFbmnkfcmgVEz+z3AU/3b0cEzZOt/zmnvZEctg64/QZbSDJEVm9fLnnlSi74KibmRsO9/Qabi+t0vCRPg==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-GJPZYcd7v8QNUJ7vRvLDmRwl+a1fGg4T/54lZXe+UOGy47F9yUfE18hRCtXL5aHN/AONu29NGzIXSVFh9K0feA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-5swjf2q95gXeYPevtW0BLk6H8+bPlMb4Vw/9Em4hFxDcaOxS+e0LOX4yqNxoHzMR2akEB2xfpnWUzkZokmgWDg==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-5fOzHj0WbUNqPK6blI/8VzZdkBlQLnT25knX0r4dbZI9qoZDf3qAdjoMmDcLG5A83W6oUUFJgUd0EYBc2P5xqg==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-5zPJ1fs0ixSVSs5+5V2XJjXLmNzjugHRyV11RqxYVR+oMcogZ9qTuSfKW+OcTV0JeFNznI83BNylzH6SSNJ1+w==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-gw2noso6WI+2PeMVCZFntdATS6xl9qhQcbhkPQ9sOmx/Xn0f4Bx4KDSbD90jpJPF0l5wOzSoGCmKyVR3W612mg==}
peerDependencies:
- vitest: 2.1.8
+ vitest: 3.0.5
- '@vitest/[email protected]':
- resolution: {integrity: sha512-dwSoui6djdwbfFmIgbIjX2ZhIoG7Ex/+xpxyiEgIGzjliY8xGkcpITKTlp6B4MgtGkF2ilvm97cPM96XZaAgcA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-N9AX0NUoUtVwKwy21JtwzaqR5L5R5A99GAbrHfCCXK1lp593i/3AZAXhSP43wRQuxYsflrdzEfXZFo1reR1Nkg==}
resolution: {integrity: sha512-lN2C1+ByfW9/JRPpqScuZt/4OrUUse57GLI6TbLgTIqBVemdl1wNcZ1qYGEo2+Gw8coYLgCy7SuKqn6IrQcQgg==}
@@ -2847,8 +2848,8 @@ packages:
resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
+ resolution: {integrity: sha512-15Ztpk+nov8DR524R4BF7uEuzESgzUEAV4Ah7CUMNGXdE5ELuvxElxGXndBl32vMSsWa1jpNf22Z+Er3sKwq+w==}
resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
@@ -3349,8 +3350,8 @@ packages:
resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==}
engines: {node: ^18.0.0 || >=20.0.0}
- resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==}
+ resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}
engines: {node: '>=14.0.0'}
@@ -3542,9 +3543,9 @@ packages:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- resolution: {integrity: sha512-uPAwSr57kYjAUux+8E2j0q0Fxpn8M9VoyfGiRI8Kfktz9NcYMCenwY5RnZxnF1WTu3TGiYipirIzacLL3VVGFg==}
- engines: {node: ^18.0.0 || >=20.0.0}
+ resolution: {integrity: sha512-02JEJl7SbtwSDJdYS537nU6l+ktdvcREfLksk/NDAqtdKWGqHl+joXzEubHROmS3E6pip+Xgu2tFezMu75jH7A==}
+ engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
hasBin: true
@@ -3590,20 +3591,23 @@ packages:
postcss:
optional: true
- resolution: {integrity: sha512-1vBKTZskHw/aosXqQUlVWWlGUxSJR8YtiyZDJAFeW2kPAeX6S3Sool0mjspO+kXLuxVWlEDDowBAeqeAQefqLQ==}
- engines: {node: ^18.0.0 || >=20.0.0}
+ resolution: {integrity: sha512-4dof+HvqONw9bvsYxtkfUp2uHsTN9bV2CZIi1pWgoFpL1Lld8LA1ka9q/ONSsoScAKG7NVGf2stJTI7XRkXb2Q==}
+ engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
- '@types/node': ^18.0.0 || >=20.0.0
- '@vitest/browser': 2.1.8
- '@vitest/ui': 2.1.8
+ '@types/debug': ^4.1.12
+ '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
+ '@vitest/browser': 3.0.5
+ '@vitest/ui': 3.0.5
happy-dom: '*'
jsdom: '*'
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
+ '@types/debug':
+ optional: true
'@types/node':
optional: true
'@vitest/browser':
@@ -3895,7 +3899,7 @@ snapshots:
'@babel/helper-string-parser': 7.25.9
'@babel/helper-validator-identifier': 7.25.9
- '@bcoe/[email protected]': {}
+ '@bcoe/[email protected]': {}
'@colors/[email protected]':
optional: true
@@ -4603,10 +4607,10 @@ snapshots:
vite: 5.4.14(@types/[email protected])
vue: 3.5.13([email protected])
dependencies:
'@ampproject/remapping': 2.3.0
- '@bcoe/v8-coverage': 0.2.3
+ '@bcoe/v8-coverage': 1.0.2
debug: 4.4.0([email protected])
istanbul-lib-coverage: 3.2.2
istanbul-lib-report: 3.0.1
@@ -4616,69 +4620,69 @@ snapshots:
magicast: 0.3.5
std-env: 3.8.0
test-exclude: 7.0.1
- tinyrainbow: 1.2.0
- vitest: 2.1.8(@types/[email protected])(@vitest/[email protected])([email protected])
+ tinyrainbow: 2.0.0
+ vitest: 3.0.5(@types/[email protected])(@vitest/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/utils': 8.21.0([email protected]([email protected]))([email protected])
eslint: 9.18.0([email protected])
optionalDependencies:
typescript: 5.7.3
- vitest: 2.1.8(@types/[email protected])(@vitest/[email protected])([email protected])
+ vitest: 3.0.5(@types/[email protected])(@vitest/[email protected])([email protected])
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/spy': 2.1.8
- '@vitest/utils': 2.1.8
+ '@vitest/spy': 3.0.5
+ '@vitest/utils': 3.0.5
chai: 5.1.2
- tinyrainbow: 1.2.0
+ tinyrainbow: 2.0.0
dependencies:
- '@vitest/spy': 2.1.8
+ '@vitest/spy': 3.0.5
estree-walker: 3.0.3
magic-string: 0.30.17
optionalDependencies:
vite: 5.4.14(@types/[email protected])
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- tinyrainbow: 1.2.0
+ tinyrainbow: 2.0.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/utils': 2.1.8
- pathe: 1.1.2
+ '@vitest/utils': 3.0.5
+ pathe: 2.0.2
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/pretty-format': 2.1.8
+ '@vitest/pretty-format': 3.0.5
magic-string: 0.30.17
- pathe: 1.1.2
+ pathe: 2.0.2
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
tinyspy: 3.0.2
dependencies:
- '@vitest/utils': 2.1.8
+ '@vitest/utils': 3.0.5
fflate: 0.8.2
flatted: 3.3.2
- pathe: 1.1.2
+ pathe: 2.0.2
sirv: 3.0.0
tinyglobby: 0.2.10
- tinyrainbow: 1.2.0
- vitest: 2.1.8(@types/[email protected])(@vitest/[email protected])([email protected])
+ tinyrainbow: 2.0.0
+ vitest: 3.0.5(@types/[email protected])(@vitest/[email protected])([email protected])
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/pretty-format': 2.1.8
+ '@vitest/pretty-format': 3.0.5
loupe: 3.1.2
- tinyrainbow: 1.2.0
+ tinyrainbow: 2.0.0
dependencies:
@@ -6514,7 +6518,7 @@ snapshots:
dependencies:
pify: 3.0.0
@@ -7023,7 +7027,7 @@ snapshots:
@@ -7207,12 +7211,12 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.2
dependencies:
cac: 6.7.14
debug: 4.4.0([email protected])
es-module-lexer: 1.6.0
- pathe: 1.1.2
+ pathe: 2.0.2
vite: 5.4.14(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
@@ -7283,31 +7287,31 @@ snapshots:
- typescript
- universal-cookie
dependencies:
- '@vitest/expect': 2.1.8
- '@vitest/mocker': 2.1.8([email protected](@types/[email protected]))
- '@vitest/pretty-format': 2.1.8
- '@vitest/runner': 2.1.8
- '@vitest/snapshot': 2.1.8
- '@vitest/spy': 2.1.8
- '@vitest/utils': 2.1.8
+ '@vitest/expect': 3.0.5
+ '@vitest/mocker': 3.0.5([email protected](@types/[email protected]))
+ '@vitest/pretty-format': 3.0.5
+ '@vitest/runner': 3.0.5
+ '@vitest/snapshot': 3.0.5
+ '@vitest/spy': 3.0.5
+ '@vitest/utils': 3.0.5
chai: 5.1.2
debug: 4.4.0([email protected])
expect-type: 1.1.0
magic-string: 0.30.17
- pathe: 1.1.2
+ pathe: 2.0.2
std-env: 3.8.0
tinybench: 2.9.0
tinyexec: 0.3.2
tinypool: 1.0.2
- tinyrainbow: 1.2.0
+ tinyrainbow: 2.0.0
vite: 5.4.14(@types/[email protected])
- vite-node: 2.1.8(@types/[email protected])
+ vite-node: 3.0.5(@types/[email protected])
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 22.10.3
- '@vitest/ui': 2.1.8([email protected])
+ '@vitest/ui': 3.0.5([email protected])
jsdom: 25.0.1
transitivePeerDependencies:
- less
diff --git a/test/internal/bind-this-to-member-functions.spec.ts b/test/internal/bind-this-to-member-functions.spec.ts
index 22a3012d..93b0a9cb 100644
--- a/test/internal/bind-this-to-member-functions.spec.ts
+++ b/test/internal/bind-this-to-member-functions.spec.ts
@@ -19,7 +19,7 @@ describe('internal', () => {
const someMethodWithoutBind = someModule.someMethod;
expect(() => someMethodWithoutBind()).toThrow(
- new Error("Cannot read properties of undefined (reading 'faker')")
+ new TypeError("Cannot read properties of undefined (reading 'faker')")
);
bindThisToMemberFunctions(someModule);
diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts
index eab50d94..29b490d2 100644
--- a/test/modules/finance.spec.ts
+++ b/test/modules/finance.spec.ts
@@ -388,7 +388,7 @@ describe('finance', () => {
expect(bitcoinAddress).toBeTruthy();
expect(bitcoinAddress).toBeTypeOf('string');
expect(bitcoinAddress).toSatisfy(isBtcAddress);
- expect(bitcoinAddress).toSatisfy<string>((v) =>
+ expect(bitcoinAddress).toSatisfy((v: string) =>
regexes.some((r) => r.test(v))
);
}
diff --git a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts
index dd27b3b3..703e42cf 100644
--- a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts
+++ b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts
@@ -209,6 +209,8 @@ ${examples}`;
expect(consoleWarnSpy).toHaveBeenCalled();
expect(deprecated).not.toBe('');
}
+
+ consoleWarnSpy.mockRestore();
});
describe.each(signature.parameters.map((p) => [p.name, p]))(
diff --git a/vitest.config.ts b/vitest.config.ts
index 24a9cda3..bb0057ca 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -17,7 +17,7 @@ export default defineConfig({
reporter: ['clover', 'cobertura', 'lcov', 'text'],
include: ['src'],
},
- reporters: CI_PREFLIGHT ? ['basic', 'github-actions'] : ['basic'],
+ reporters: CI_PREFLIGHT ? ['default', 'github-actions'] : ['default'],
sequence: {
seed: VITEST_SEQUENCE_SEED,
shuffle: true,