Skip to content

Commit

Permalink
test: switch to vitest (#19)
Browse files Browse the repository at this point in the history
* test: switch to vitest

* chore: move test to tests directory
  • Loading branch information
dsanders11 authored Nov 21, 2024
1 parent ef0d5ee commit 5401e53
Show file tree
Hide file tree
Showing 4 changed files with 533 additions and 2,892 deletions.
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,16 @@
"prepare": "husky install",
"prettier:check": "prettier --check \"src/**/*.ts\"",
"prettier:write": "prettier --write \"src/**/*.ts\"",
"test": "jest"
"test": "vitest run"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@types/jest": "^29.0.0",
"@types/node": "^14.14.37",
"@types/pg": "^8.6.0",
"babel-jest": "^29.0.0",
"husky": "^6.0.0",
"jest": "^29.0.0",
"lint-staged": "^10.5.4",
"prettier": "^2.3.1",
"typescript": "^4.3.4"
"typescript": "^4.3.4",
"vitest": "^2.1.5"
},
"lint-staged": {
"*.ts": "prettier --write"
Expand Down
4 changes: 3 additions & 1 deletion src/crsource.spec.js → tests/crsource.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { parseChromiumSourceURL } from './crsource';
import { describe, expect, it } from 'vitest';

import { parseChromiumSourceURL } from '../src/crsource';

describe('parseChromiumSourceURL', () => {
it('should handle direct file URLs', () => {
Expand Down
Loading

0 comments on commit 5401e53

Please sign in to comment.