refactor: move to vitest

This commit is contained in:
2023-11-19 14:10:45 +01:00
parent 1e52f151e4
commit 1200e96c43
4 changed files with 477 additions and 1818 deletions

View File

@@ -1,5 +0,0 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};

View File

@@ -22,14 +22,12 @@
"author": "SrIzan10 <66965250+SrIzan10@users.noreply.github.com>",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.8",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"vitest": "^0.34.6"
},
"scripts": {
"test": "jest",
"test": "vitest run",
"build": "tsup"
}
}

View File

@@ -1,4 +1,5 @@
import { randomString } from '../src/index.ts'
import { describe, it, expect } from 'vitest'
describe('randomString', () => {
it('should return a random string with the length of 10', () => {

2281
yarn.lock

File diff suppressed because it is too large Load Diff