Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd156261

Browse files
committed
tests: update tests configuration
1 parentd41df3b commitd156261

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

‎packages/coreui-vue/jest.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright (c) 2013-present, creativeLabs Lukasz Holeczek.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict'
9+
10+
module.exports={
11+
moduleFileExtensions:['tsx','js','ts','json','vue'],
12+
preset:'ts-jest',
13+
testEnvironment:'jsdom',
14+
testEnvironmentOptions:{
15+
customExportConditions:['node','node-addons'],
16+
},
17+
testPathIgnorePatterns:['dist/'],
18+
transform:{
19+
'.*\\.(ts)$':'ts-jest',
20+
'.*\\.(vue)$':'@vue/vue3-jest',
21+
},
22+
}

‎packages/coreui-vue/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,24 @@
3131
"src/"
3232
],
3333
"scripts": {
34-
"build":"rollup -c --bundleConfigAsCjs"
34+
"build":"rollup -c --bundleConfigAsCjs",
35+
"test":"jest --coverage",
36+
"test:clear":"jest --clearCache",
37+
"test:update":"jest --coverage --updateSnapshot"
3538
},
3639
"devDependencies": {
3740
"@popperjs/core":"^2.11.6",
3841
"@rollup/plugin-commonjs":"^24.0.1",
3942
"@rollup/plugin-node-resolve":"^15.0.1",
4043
"@rollup/plugin-typescript":"^11.0.0",
41-
"@vue/test-utils":"^2.2.10",
44+
"@types/jest":"^29.5.0",
45+
"@vue/test-utils":"^2.3.2",
46+
"@vue/vue3-jest":"29.2.3",
47+
"jest":"^29.5.0",
48+
"jest-environment-jsdom":"^29.5.0",
4249
"rollup":"^3.15.0",
4350
"rollup-plugin-vue":"^6.0.0",
51+
"ts-jest":"^29.0.5",
4452
"typescript":"^4.9.5",
4553
"vue":"^3.2.47",
4654
"vue-types":"^5.0.2"

‎packages/coreui-vue/src/components/dropdown/__tests__/CDropdown.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const customWrapper = mount(Component, {
1818
disabled:true,
1919
placement:'right-start',
2020
popper:false,
21-
trigger:'mouseover',
21+
trigger:'hover',
2222
variant:'nav-item',
2323
visible:true,
2424
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp