Skip to content

Commit

Permalink
chore(test): move @sanity/schema to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Sep 23, 2024
1 parent d8fedd4 commit a05456a
Show file tree
Hide file tree
Showing 10 changed files with 1,565 additions and 1,566 deletions.
5 changes: 0 additions & 5 deletions packages/@sanity/schema/jest.config.mjs

This file was deleted.

8 changes: 4 additions & 4 deletions packages/@sanity/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"clean": "rimraf _internal.js lib",
"lint": "eslint .",
"prepublishOnly": "turbo run build",
"test": "jest",
"test:watch": "jest --watchAll",
"test": "vitest run",
"test:watch": "vitest watch",
"watch": "pkg-utils watch"
},
"dependencies": {
Expand All @@ -73,14 +73,14 @@
"object-inspect": "^1.13.1"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@repo/package.config": "workspace:*",
"@repo/test-config": "workspace:*",
"@sanity/icons": "^3.4.0",
"@types/arrify": "^1.0.4",
"@types/lodash": "^4.17.7",
"@types/object-inspect": "^1.13.0",
"@types/react": "^18.3.5",
"rimraf": "^3.0.2"
"rimraf": "^3.0.2",
"vitest": "^2.1.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {describe, expect, test} from '@jest/globals'
import {defineField, defineType, type Schema} from '@sanity/types'
import {describe, expect, test} from 'vitest'

import {Schema as SchemaBuilder} from '../Schema'
import {resolveSearchConfig, resolveSearchConfigForBaseFieldPaths} from './resolve'
Expand Down
Loading

0 comments on commit a05456a

Please sign in to comment.