Skip to content

Commit

Permalink
add vitest remove jest
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandotv committed Sep 18, 2023
1 parent 54816d1 commit ac416a0
Show file tree
Hide file tree
Showing 22 changed files with 136 additions and 1,805 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module.exports = {
root: true,
env: {
// commonjs: true,
es6: true,
node: true,
jest: true
node: true
},
globals: {
__DEV__: true,
Expand All @@ -20,8 +18,6 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:jest/style',
'prettier'
],
parser: '@typescript-eslint/parser',
Expand Down
32 changes: 1 addition & 31 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,12 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Main",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/src/index.ts",
// "preLaunchTask": "npm: build:cjs",
"outFiles": ["${workspaceFolder}/dist/cjs/**/*.js"],
"smartStep": true,
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js"
]
},
{
"name": "Current test file",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js", //pnpm fix
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"env": {
"JEST_DEBUG": "true"
},
Expand All @@ -33,29 +20,12 @@
"--runInBand"
],
"console": "integratedTerminal",
"protocol": "inspector",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"smartStep": true,
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js"
]
},
{
"name": "Nodemon",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector",
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js"
],
// "localRoot": "${workspaceFolder}/src/regexparam",
// "remoteRoot": "/",
"stopOnEntry": true
}
]
}
37 changes: 0 additions & 37 deletions jest.config.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions jestSetup.ts

This file was deleted.

7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"lint:ci": "eslint \"src/**/\"",
"test": "vitest run --coverage",
"test:watch": "vitest",
"test:ci": "jest --runInBand --ci --coverage --coverageDirectory=coverage",
"build": "tsc && vite build",
"gen:docs": "rm -rf ./docs/api && typedoc --options typedoc.cjs --plugin typedoc-plugin-markdown",
"prepublishOnly": "pnpm build",
Expand All @@ -46,21 +45,15 @@
"homepage": "https://github.com/ivandotv/pumpit#readme",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/jest": "^29.5.4",
"@types/node": "^20.6.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vitest/coverage-istanbul": "^0.34.4",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-tsdoc": "^0.2.17",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-mock-console": "^2.0.0",
"jest-watch-typeahead": "^2.2.2",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"shx": "^0.3.4",
Expand Down
Loading

0 comments on commit ac416a0

Please sign in to comment.