@cedarjs/testing 6.0.0-canary.2661 → 6.0.0-canary.2663

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.
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(MockProviders_exports);
34
34
  var import_react = __toESM(require("react"), 1);
35
35
  var import_router = require("@cedarjs/router");
36
36
  var import_web = require("@cedarjs/web");
37
- var import_apollo = require("@cedarjs/web/apollo");
37
+ var import_CedarApolloProvider = require("@cedarjs/web/apollo/CedarApolloProvider");
38
38
  var import_globRoutesImporter = require("./globRoutesImporter.js");
39
39
  var import_mockAuth = require("./mockAuth.js");
40
40
  var import_MockParamsProvider = require("./MockParamsProvider.js");
@@ -49,7 +49,7 @@ try {
49
49
  UserRoutes = () => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
50
50
  }
51
51
  const MockProviders = ({ children }) => {
52
- return /* @__PURE__ */ import_react.default.createElement(import_web.RedwoodProvider, { titleTemplate: "%PageTitle | %AppTitle" }, /* @__PURE__ */ import_react.default.createElement(import_apollo.RedwoodApolloProvider, { useAuth: import_mockAuth.useAuth }, /* @__PURE__ */ import_react.default.createElement(UserRoutes, null), /* @__PURE__ */ import_react.default.createElement(import_globRoutesImporter.UserRoutes, null), /* @__PURE__ */ import_react.default.createElement(import_router.LocationProvider, null, /* @__PURE__ */ import_react.default.createElement(import_MockParamsProvider.MockParamsProvider, null, children))));
52
+ return /* @__PURE__ */ import_react.default.createElement(import_web.RedwoodProvider, { titleTemplate: "%PageTitle | %AppTitle" }, /* @__PURE__ */ import_react.default.createElement(import_CedarApolloProvider.CedarApolloProvider, { useAuth: import_mockAuth.useAuth }, /* @__PURE__ */ import_react.default.createElement(UserRoutes, null), /* @__PURE__ */ import_react.default.createElement(import_globRoutesImporter.UserRoutes, null), /* @__PURE__ */ import_react.default.createElement(import_router.LocationProvider, null, /* @__PURE__ */ import_react.default.createElement(import_MockParamsProvider.MockParamsProvider, null, children))));
53
53
  };
54
54
  function isModuleNotFoundError(error, module2) {
55
55
  if (!error || typeof error !== "object" || !("code" in error) || error.code !== "MODULE_NOT_FOUND") {
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { LocationProvider } from "@cedarjs/router";
3
3
  import { RedwoodProvider } from "@cedarjs/web";
4
- import { RedwoodApolloProvider } from "@cedarjs/web/apollo";
4
+ import { CedarApolloProvider } from "@cedarjs/web/apollo/CedarApolloProvider";
5
5
  import { UserRoutes as VitestUserRoutes } from "./globRoutesImporter.js";
6
6
  import { useAuth } from "./mockAuth.js";
7
7
  import { MockParamsProvider } from "./MockParamsProvider.js";
@@ -16,7 +16,7 @@ try {
16
16
  UserRoutes = () => /* @__PURE__ */ React.createElement(React.Fragment, null);
17
17
  }
18
18
  const MockProviders = ({ children }) => {
19
- return /* @__PURE__ */ React.createElement(RedwoodProvider, { titleTemplate: "%PageTitle | %AppTitle" }, /* @__PURE__ */ React.createElement(RedwoodApolloProvider, { useAuth }, /* @__PURE__ */ React.createElement(UserRoutes, null), /* @__PURE__ */ React.createElement(VitestUserRoutes, null), /* @__PURE__ */ React.createElement(LocationProvider, null, /* @__PURE__ */ React.createElement(MockParamsProvider, null, children))));
19
+ return /* @__PURE__ */ React.createElement(RedwoodProvider, { titleTemplate: "%PageTitle | %AppTitle" }, /* @__PURE__ */ React.createElement(CedarApolloProvider, { useAuth }, /* @__PURE__ */ React.createElement(UserRoutes, null), /* @__PURE__ */ React.createElement(VitestUserRoutes, null), /* @__PURE__ */ React.createElement(LocationProvider, null, /* @__PURE__ */ React.createElement(MockParamsProvider, null, children))));
20
20
  };
21
21
  function isModuleNotFoundError(error, module) {
22
22
  if (!error || typeof error !== "object" || !("code" in error) || error.code !== "MODULE_NOT_FOUND") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/testing",
3
- "version": "6.0.0-canary.2661",
3
+ "version": "6.0.0-canary.2663",
4
4
  "description": "Tools, wrappers and configuration for testing a Cedar project.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -116,10 +116,10 @@
116
116
  "test:watch": "vitest watch"
117
117
  },
118
118
  "dependencies": {
119
- "@cedarjs/babel-config": "6.0.0-canary.2661",
120
- "@cedarjs/context": "6.0.0-canary.2661",
121
- "@cedarjs/graphql-server": "6.0.0-canary.2661",
122
- "@cedarjs/project-config": "6.0.0-canary.2661",
119
+ "@cedarjs/babel-config": "6.0.0-canary.2663",
120
+ "@cedarjs/context": "6.0.0-canary.2663",
121
+ "@cedarjs/graphql-server": "6.0.0-canary.2663",
122
+ "@cedarjs/project-config": "6.0.0-canary.2663",
123
123
  "@testing-library/dom": "10.4.1",
124
124
  "@testing-library/jest-dom": "6.9.1",
125
125
  "@testing-library/react": "16.3.2",
@@ -141,10 +141,10 @@
141
141
  },
142
142
  "devDependencies": {
143
143
  "@arethetypeswrong/cli": "0.18.5",
144
- "@cedarjs/auth": "6.0.0-canary.2661",
145
- "@cedarjs/framework-tools": "6.0.0-canary.2661",
146
- "@cedarjs/router": "6.0.0-canary.2661",
147
- "@cedarjs/web": "6.0.0-canary.2661",
144
+ "@cedarjs/auth": "6.0.0-canary.2663",
145
+ "@cedarjs/framework-tools": "6.0.0-canary.2663",
146
+ "@cedarjs/router": "6.0.0-canary.2663",
147
+ "@cedarjs/web": "6.0.0-canary.2663",
148
148
  "concurrently": "9.2.1",
149
149
  "jsdom": "27.4.0",
150
150
  "publint": "0.3.21",