Skip to content

Commit 4386545

Browse files
committed
test: replace jest with vitest
1 parent 6168b86 commit 4386545

File tree

12 files changed

+688
-3514
lines changed

12 files changed

+688
-3514
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = {
1313
'import/no-extraneous-dependencies': ['error', {
1414
devDependencies: [
1515
'tests/**',
16-
'jest.config.js',
1716
'vite.config.ts',
1817
],
1918
}],

.github/workflows/checks.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,4 @@ jobs:
7070
- name: Install dependencies
7171
run: corepack pnpm install
7272
- name: Run tests
73-
uses: mattallty/[email protected]
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
with:
77-
test-command: "npm run test"
73+
run: npm run test

.github/workflows/mutation-test.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
hoist-pattern[]=*babel*
2-
hoist-pattern[]=*jest*
32
hoist-pattern[]=exit
43
enable-pre-post-scripts=true

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[![npm](https://img.shields.io/npm/v/vue-promise-dialogs?style=for-the-badge)](https://www.npmjs.com/package/vue-promise-dialogs)
22
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/vue-promise-dialogs?style=for-the-badge)](https://bundlephobia.com/result?p=vue-promise-dialogs)
3-
[![Mutation testing badge](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FDjaler%2Fvue-promise-dialogs%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/Djaler/vue-promise-dialogs/master)
43

54
# Vue Promise Dialogs
65

jest.config.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
"preinstall": "npx only-allow pnpm",
1818
"lint": "eslint .",
1919
"lint:fix": "npm run lint -- --fix",
20-
"test": "jest",
21-
"test:watch": "npm run test -- --watch",
22-
"stryker": "stryker run",
20+
"test": "vitest run",
21+
"test:watch": "vitest watch",
2322
"build:typings": "ttsc -p tsconfig.build.json && copyfiles -u 1 \"src/**/*.d.ts\" dist/types",
2423
"build": "vite build && npm run build:typings",
2524
"check-es6": "es-check es6 dist/index.js",
@@ -45,12 +44,7 @@
4544
"devDependencies": {
4645
"@djaler/conventional-changelog-standard": "1.2.0",
4746
"@djaler/eslint-config-typescript": "0.0.7",
48-
"@jest/types": "26.6.2",
4947
"@rollup/plugin-replace": "2.3.4",
50-
"@stryker-mutator/api": "5.6.1",
51-
"@stryker-mutator/core": "5.6.1",
52-
"@stryker-mutator/jest-runner": "5.6.1",
53-
"@types/jest": "26.0.20",
5448
"@vue/test-utils": "1.3.0",
5549
"@zerollup/ts-transform-paths": "1.7.18",
5650
"agadoo": "2.0.0",
@@ -60,14 +54,14 @@
6054
"es-check": "5.2.4",
6155
"eslint": "7.32.0",
6256
"eslint-import-resolver-typescript": "2.5.0",
63-
"jest": "26.6.3",
57+
"jsdom": "20.0.0",
6458
"nano-staged": "0.6.0",
6559
"simple-git-hooks": "2.7.0",
6660
"standard-version": "9.3.2",
67-
"ts-jest": "26.5.6",
6861
"ttypescript": "1.5.12",
6962
"typescript": "4.4.2",
7063
"vite": "2.8.6",
64+
"vitest": "0.15.2",
7165
"vue": "2.6.12",
7266
"vue-class-component": "7.2.6",
7367
"vue-property-decorator": "9.1.2",

0 commit comments

Comments
 (0)