-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(vitest): migrate from jest to vitest
Signed-off-by: Raimund Schlüßler <[email protected]>
- Loading branch information
1 parent
5f6f5b5
commit 17e0edf
Showing
21 changed files
with
2,733 additions
and
1,372 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ | |
"lint:fix": "eslint --ext .js,.vue src tests --fix", | ||
"stylelint": "stylelint 'css/**/*.scss'", | ||
"stylelint:fix": "stylelint 'css/**/*.scss' --fix", | ||
"test": "jest --verbose" | ||
"test": "vitest run" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:nextcloud/tasks.git" | ||
}, | ||
"type": "module", | ||
"type": "module", | ||
"bugs": "https://github.com/nextcloud/tasks/issues", | ||
"contributors": [], | ||
"dependencies": { | ||
|
@@ -66,66 +66,16 @@ | |
"@nextcloud/stylelint-config": "^2.3.1", | ||
"@nextcloud/vite-config": "^1.2.0", | ||
"@vue/test-utils": "^1.3.6", | ||
"@vue/vue2-jest": "^29.2.6", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^29.7.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jest-serializer-vue": "^3.1.0", | ||
"jest-transform-stub": "^2.0.0", | ||
"happy-dom": "^12.10.3", | ||
"mockdate": "^3.0.5", | ||
"regenerator-runtime": "^0.14.1" | ||
"regenerator-runtime": "^0.14.1", | ||
"vitest": "^1.1.0" | ||
}, | ||
"engines": { | ||
"node": "^20.0.0", | ||
"npm": "^9.0.0" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"vue" | ||
], | ||
"moduleNameMapper": { | ||
"^@/(.*)$": "<rootDir>/src/$1", | ||
"^Assets/(.*)$": "<rootDir>/src/assets/$1", | ||
"^Components/(.*)$": "<rootDir>/src/components/$1", | ||
"^Directives/(.*)$": "<rootDir>/src/directives/$1", | ||
"^Fonts/(.*)$": "<rootDir>/src/fonts/$1", | ||
"^Mixins/(.*)$": "<rootDir>/src/mixins/$1", | ||
"^Models/(.*)$": "<rootDir>/src/models/$1", | ||
"^Store/(.*)$": "<rootDir>/src/store/$1", | ||
"^Utils/(.*)$": "<rootDir>/src/utils/$1", | ||
"^Views/(.*)$": "<rootDir>/src/views/$1" | ||
}, | ||
"testEnvironment": "jsdom", | ||
"transform": { | ||
"^.+\\.js$": "<rootDir>/node_modules/babel-jest", | ||
"^.+\\.vue$": "<rootDir>/node_modules/@vue/vue2-jest", | ||
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub" | ||
}, | ||
"transformIgnorePatterns": [ | ||
"/node_modules/(?!(.*vue-material-design-icons)|(uuid)|(.*vue-select)|(@nextcloud/vue)|(.*p-*))" | ||
], | ||
"snapshotSerializers": [ | ||
"<rootDir>/node_modules/jest-serializer-vue" | ||
], | ||
"setupFilesAfterEnv": [ | ||
"./tests/javascript/unit/setup.js" | ||
], | ||
"coverageDirectory": "./coverage/", | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"<rootDir>/src/**/*.{js,vue}", | ||
"!**/node_modules/**" | ||
], | ||
"coverageReporters": [ | ||
"json", | ||
"text", | ||
"html", | ||
"lcov", | ||
"clover" | ||
] | ||
}, | ||
"browserslist": [ | ||
"extends @nextcloud/browserslist-config" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.