Skip to content

Commit

Permalink
feat: switch to vitest (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Dec 13, 2023
1 parent 323c6de commit e0b5f67
Show file tree
Hide file tree
Showing 6 changed files with 631 additions and 1,774 deletions.
12 changes: 3 additions & 9 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@ root: true
env:
node: true
es6: true
'jest/globals': true
extends:
[
'eslint:recommended',
'plugin:jest/recommended',
'plugin:@typescript-eslint/recommended',
]
ignorePatterns: ['__tests__', 'dist', 'lib', 'node_modules', 'jest.config.js']
plugins: ['jest', '@typescript-eslint']
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended']
ignorePatterns: ['__tests__', 'dist', 'lib', 'node_modules']
plugins: ['@typescript-eslint']
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2018
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
filters: |
config: &config
- .github/**
- jest.config.js
- '**.json5?'
- '**.md'
- '**.yaml'
Expand Down
1 change: 1 addition & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {expect, test} from 'vitest'
import {wait} from '../src/wait'
import * as process from 'process'
import * as cp from 'child_process'
Expand Down
9 changes: 0 additions & 9 deletions jest.config.js

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "prettier --write .",
"check-format": "prettier --check .",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"test": "jest"
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -28,19 +28,16 @@
},
"devDependencies": {
"@semantic-release/git": "10.0.1",
"@types/jest": "29.5.11",
"@types/node": "20.10.4",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@vercel/ncc": "0.38.1",
"conventional-changelog-conventionalcommits": "7.0.2",
"eslint": "8.55.0",
"eslint-plugin-jest": "27.6.0",
"jest": "29.7.0",
"js-yaml": "4.1.0",
"prettier": "3.1.1",
"semantic-release": "22.0.12",
"ts-jest": "29.1.1",
"typescript": "5.3.3"
"typescript": "5.3.3",
"vitest": "1.0.4"
}
}
Loading

0 comments on commit e0b5f67

Please sign in to comment.