Skip to content

Commit 56b7ee5

Browse files
committed
chore(test): move @sanity/schema to vitest
1 parent 09be44d commit 56b7ee5

File tree

10 files changed

+1565
-1566
lines changed

10 files changed

+1565
-1566
lines changed

packages/@sanity/schema/jest.config.mjs

-5
This file was deleted.

packages/@sanity/schema/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
"clean": "rimraf _internal.js lib",
5959
"lint": "eslint .",
6060
"prepublishOnly": "turbo run build",
61-
"test": "jest",
62-
"test:watch": "jest --watchAll",
61+
"test": "vitest run",
62+
"test:watch": "vitest watch",
6363
"watch": "pkg-utils watch"
6464
},
6565
"dependencies": {
@@ -73,14 +73,14 @@
7373
"object-inspect": "^1.13.1"
7474
},
7575
"devDependencies": {
76-
"@jest/globals": "^29.7.0",
7776
"@repo/package.config": "workspace:*",
7877
"@repo/test-config": "workspace:*",
7978
"@sanity/icons": "^3.4.0",
8079
"@types/arrify": "^1.0.4",
8180
"@types/lodash": "^4.17.7",
8281
"@types/object-inspect": "^1.13.0",
8382
"@types/react": "^18.3.5",
84-
"rimraf": "^3.0.2"
83+
"rimraf": "^3.0.2",
84+
"vitest": "^2.1.1"
8585
}
8686
}

packages/@sanity/schema/src/legacy/searchConfig/resolve.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {describe, expect, test} from '@jest/globals'
21
import {defineField, defineType, type Schema} from '@sanity/types'
2+
import {describe, expect, test} from 'vitest'
33

44
import {Schema as SchemaBuilder} from '../Schema'
55
import {resolveSearchConfig, resolveSearchConfigForBaseFieldPaths} from './resolve'

0 commit comments

Comments
 (0)