mirror of
https://github.com/SrIzan10/util-utils.git
synced 2026-06-06 01:06:59 +00:00
refactor: move to vitest
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user