Skip to content

Commit

Permalink
test: migrate tests to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Nov 19, 2023
1 parent 64f1ff7 commit 97cac6e
Show file tree
Hide file tree
Showing 140 changed files with 318 additions and 192 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@
"start": "dts watch --target node",
"build:check": "tsc --noEmit",
"build": "tsc --noEmit && dts build --target node",
"test": "dts test --runInBand --testTimeout=30000",
"test:packages": "dts test test/package-snapshots --maxWorkers=4 --testTimeout=30000",
"test:cov": "dts test --coverage --maxWorkers=4 --testTimeout=30000",
"test:watch": "dts test --runInBand --watchAll --coverage",
"test:ci": "dts test --coverage --maxWorkers=2 --testTimeout=30000 --bail --ci",
"test": "vitest",
"test:packages": "vitest run test/package-snapshots",
"test:cov": "vitest run --coverage",
"test:ci": "vitest --coverage --bail 1",
"lint": "dts lint src test",
"lint:fix": "dts lint src test --fix",
"debug:analyze": "pnpm tsx scripts/debug-analyze.ts",
Expand Down Expand Up @@ -87,6 +86,7 @@
"@types/prettier": "2.7.3",
"@types/setup-polly-jest": "0.5.5",
"@types/tar-stream": "3.1.3",
"@vitest/coverage-v8": "^0.34.6",
"clinic": "13.0.0",
"dts-cli": "2.0.3",
"eslint-plugin-prettier": "4.2.1",
Expand All @@ -100,6 +100,6 @@
"tslib": "2.6.2",
"tsx": "^4.1.2",
"typescript": "5.2.2",
"vitest": "^0.34.6"
"vitest": "1.0.0-beta.5"
}
}
159 changes: 102 additions & 57 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`ambient-modules snapshot 1`] = `
exports[`ambient-modules > snapshot 1`] = `
{
"declarations": {
"classes": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`ambient-namespaces snapshot 1`] = `
exports[`ambient-namespaces > snapshot 1`] = `
{
"declarations": {
"classes": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`class-with-overloaded-methods snapshot 1`] = `
exports[`class-with-overloaded-methods > snapshot 1`] = `
{
"declarations": {
"classes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`export-all-as-namespace snapshot 1`] = `
exports[`export-all-as-namespace > snapshot 1`] = `
{
"declarations": {
"classes": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`export-as-namespace snapshot 1`] = `
exports[`export-as-namespace > snapshot 1`] = `
{
"declarations": {
"classes": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`export-default-class snapshot 1`] = `
exports[`export-default-class > snapshot 1`] = `
{
"declarations": {
"classes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`export-default-const snapshot 1`] = `
exports[`export-default-const > snapshot 1`] = `
{
"declarations": {
"classes": [],
Expand Down
Loading

0 comments on commit 97cac6e

Please sign in to comment.