@cedarjs/internal 8.0.0-canary.3274 → 8.0.0-canary.3285

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,11 @@
1
+ import type { vi as _vi } from 'vitest'
2
+
1
3
  import type { CurrentUser } from '@cedarjs/auth'
2
4
 
3
5
  declare global {
6
+ // describe, it, expect etc. are typed by @types/jest. Referencing
7
+ // vitest/globals here would conflict with those declarations, so only vi
8
+ // is declared
9
+ const vi: typeof _vi
4
10
  const mockCurrentUser: (currentUser: CurrentUser) => void
5
11
  }
@@ -1,7 +1,18 @@
1
- // Import other mocking function globals
2
- import '@cedarjs/testing'
1
+ import type { vi as _vi } from 'vitest'
2
+
3
+ import type {
4
+ mockGraphQLMutation as _mockGraphQLMutation,
5
+ mockGraphQLQuery as _mockGraphQLQuery,
6
+ } from '@cedarjs/testing/web'
7
+
3
8
  import { InferredCurrentUser } from './all-currentUser.js'
4
9
 
5
10
  declare global {
11
+ // describe, it, expect etc. are typed by @types/jest. Referencing
12
+ // vitest/globals here would conflict with those declarations, so only vi
13
+ // is declared
14
+ const vi: typeof _vi
6
15
  const mockCurrentUser: (currentUser: InferredCurrentUser) => void
16
+ const mockGraphQLQuery: typeof _mockGraphQLQuery
17
+ const mockGraphQLMutation: typeof _mockGraphQLMutation
7
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/internal",
3
- "version": "8.0.0-canary.3274",
3
+ "version": "8.0.0-canary.3285",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -120,14 +120,14 @@
120
120
  "@babel/core": "^7.26.10",
121
121
  "@babel/parser": "7.29.9",
122
122
  "@babel/traverse": "7.29.8",
123
- "@cedarjs/api": "8.0.0-canary.3274",
124
- "@cedarjs/babel-config": "8.0.0-canary.3274",
125
- "@cedarjs/cli-helpers": "8.0.0-canary.3274",
126
- "@cedarjs/graphql-server": "8.0.0-canary.3274",
127
- "@cedarjs/project-config": "8.0.0-canary.3274",
128
- "@cedarjs/router": "8.0.0-canary.3274",
129
- "@cedarjs/structure": "8.0.0-canary.3274",
130
- "@cedarjs/utils": "8.0.0-canary.3274",
123
+ "@cedarjs/api": "8.0.0-canary.3285",
124
+ "@cedarjs/babel-config": "8.0.0-canary.3285",
125
+ "@cedarjs/cli-helpers": "8.0.0-canary.3285",
126
+ "@cedarjs/graphql-server": "8.0.0-canary.3285",
127
+ "@cedarjs/project-config": "8.0.0-canary.3285",
128
+ "@cedarjs/router": "8.0.0-canary.3285",
129
+ "@cedarjs/structure": "8.0.0-canary.3285",
130
+ "@cedarjs/utils": "8.0.0-canary.3285",
131
131
  "@graphql-codegen/add": "6.0.1",
132
132
  "@graphql-codegen/cli": "6.3.1",
133
133
  "@graphql-codegen/client-preset": "5.3.0",
@@ -165,7 +165,7 @@
165
165
  "vite-tsconfig-paths": "^6.1.1"
166
166
  },
167
167
  "devDependencies": {
168
- "@cedarjs/framework-tools": "8.0.0-canary.3274",
168
+ "@cedarjs/framework-tools": "8.0.0-canary.3285",
169
169
  "@jridgewell/trace-mapping": "0.3.31",
170
170
  "@oxc-project/types": "^0.151.0",
171
171
  "concurrently": "9.2.4",