@cedarjs/testing 6.0.0-canary.2789 → 6.0.0-canary.2792

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 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MAqFb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -91,14 +91,20 @@ const config = {
91
91
  "^(\\.{1,2}/.*)\\.js$": "$1"
92
92
  },
93
93
  transform: {
94
- // `@cedarjs/context` is ESM-only, and @cedarjs/testing's own api entry
95
- // point (which virtually every generated project's api-side test
96
- // imports, for scenario/mock helpers) requires it at the top level. Jest's
97
- // CJS runtime can't parse the real ESM this now emits, so it needs the
98
- // same babel-jest carve-out the web preset already uses for ESM-only
99
- // node_modules packages (see jest-preset.ts on the web side for the
100
- // fuller explanation of why this is necessary).
101
- "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\]context[/\\\\].+\\.js$": [
94
+ // `@cedarjs/context`, `@cedarjs/api`, `@cedarjs/graphql-server`, and
95
+ // `@cedarjs/storage` are ESM-only. Two things pull them in at the top
96
+ // level of a generated project's api-side test run: @cedarjs/testing's
97
+ // own api entry point (which virtually every test imports, for
98
+ // scenario/mock helpers pulls in `@cedarjs/context` and
99
+ // `@cedarjs/graphql-server` via `directive.ts`, and
100
+ // `@cedarjs/api/webhooks` via `apiFunction.ts`), and the *user's own*
101
+ // generated code — the `cedar setup uploads` template imports
102
+ // `@cedarjs/storage`. Jest's CJS runtime can't parse the real ESM these
103
+ // now emit, so they need the same babel-jest carve-out the web preset
104
+ // already uses for ESM-only node_modules packages (see jest-preset.ts
105
+ // on the web side for the fuller explanation of why this is
106
+ // necessary).
107
+ "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\](context|api|graphql-server|storage)[/\\\\].+\\.js$": [
102
108
  "babel-jest",
103
109
  {
104
110
  babelrc: false,
@@ -122,7 +128,7 @@ const config = {
122
128
  ]
123
129
  },
124
130
  transformIgnorePatterns: [
125
- "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
131
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])(?!@cedarjs[/\\\\]api[/\\\\])(?!@cedarjs[/\\\\]graphql-server[/\\\\])(?!@cedarjs[/\\\\]storage[/\\\\])"
126
132
  ],
127
133
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
128
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MAqFb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -91,14 +91,20 @@ const config = {
91
91
  "^(\\.{1,2}/.*)\\.js$": "$1"
92
92
  },
93
93
  transform: {
94
- // `@cedarjs/context` is ESM-only, and @cedarjs/testing's own api entry
95
- // point (which virtually every generated project's api-side test
96
- // imports, for scenario/mock helpers) requires it at the top level. Jest's
97
- // CJS runtime can't parse the real ESM this now emits, so it needs the
98
- // same babel-jest carve-out the web preset already uses for ESM-only
99
- // node_modules packages (see jest-preset.ts on the web side for the
100
- // fuller explanation of why this is necessary).
101
- "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\]context[/\\\\].+\\.js$": [
94
+ // `@cedarjs/context`, `@cedarjs/api`, `@cedarjs/graphql-server`, and
95
+ // `@cedarjs/storage` are ESM-only. Two things pull them in at the top
96
+ // level of a generated project's api-side test run: @cedarjs/testing's
97
+ // own api entry point (which virtually every test imports, for
98
+ // scenario/mock helpers pulls in `@cedarjs/context` and
99
+ // `@cedarjs/graphql-server` via `directive.ts`, and
100
+ // `@cedarjs/api/webhooks` via `apiFunction.ts`), and the *user's own*
101
+ // generated code — the `cedar setup uploads` template imports
102
+ // `@cedarjs/storage`. Jest's CJS runtime can't parse the real ESM these
103
+ // now emit, so they need the same babel-jest carve-out the web preset
104
+ // already uses for ESM-only node_modules packages (see jest-preset.ts
105
+ // on the web side for the fuller explanation of why this is
106
+ // necessary).
107
+ "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\](context|api|graphql-server|storage)[/\\\\].+\\.js$": [
102
108
  "babel-jest",
103
109
  {
104
110
  babelrc: false,
@@ -122,7 +128,7 @@ const config = {
122
128
  ]
123
129
  },
124
130
  transformIgnorePatterns: [
125
- "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
131
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])(?!@cedarjs[/\\\\]api[/\\\\])(?!@cedarjs[/\\\\]graphql-server[/\\\\])(?!@cedarjs[/\\\\]storage[/\\\\])"
126
132
  ],
127
133
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
128
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MAqFb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -58,14 +58,20 @@ const config = {
58
58
  "^(\\.{1,2}/.*)\\.js$": "$1"
59
59
  },
60
60
  transform: {
61
- // `@cedarjs/context` is ESM-only, and @cedarjs/testing's own api entry
62
- // point (which virtually every generated project's api-side test
63
- // imports, for scenario/mock helpers) requires it at the top level. Jest's
64
- // CJS runtime can't parse the real ESM this now emits, so it needs the
65
- // same babel-jest carve-out the web preset already uses for ESM-only
66
- // node_modules packages (see jest-preset.ts on the web side for the
67
- // fuller explanation of why this is necessary).
68
- "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\]context[/\\\\].+\\.js$": [
61
+ // `@cedarjs/context`, `@cedarjs/api`, `@cedarjs/graphql-server`, and
62
+ // `@cedarjs/storage` are ESM-only. Two things pull them in at the top
63
+ // level of a generated project's api-side test run: @cedarjs/testing's
64
+ // own api entry point (which virtually every test imports, for
65
+ // scenario/mock helpers pulls in `@cedarjs/context` and
66
+ // `@cedarjs/graphql-server` via `directive.ts`, and
67
+ // `@cedarjs/api/webhooks` via `apiFunction.ts`), and the *user's own*
68
+ // generated code — the `cedar setup uploads` template imports
69
+ // `@cedarjs/storage`. Jest's CJS runtime can't parse the real ESM these
70
+ // now emit, so they need the same babel-jest carve-out the web preset
71
+ // already uses for ESM-only node_modules packages (see jest-preset.ts
72
+ // on the web side for the fuller explanation of why this is
73
+ // necessary).
74
+ "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\](context|api|graphql-server|storage)[/\\\\].+\\.js$": [
69
75
  "babel-jest",
70
76
  {
71
77
  babelrc: false,
@@ -89,7 +95,7 @@ const config = {
89
95
  ]
90
96
  },
91
97
  transformIgnorePatterns: [
92
- "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
98
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])(?!@cedarjs[/\\\\]api[/\\\\])(?!@cedarjs[/\\\\]graphql-server[/\\\\])(?!@cedarjs[/\\\\]storage[/\\\\])"
93
99
  ],
94
100
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
95
101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/testing",
3
- "version": "6.0.0-canary.2789",
3
+ "version": "6.0.0-canary.2792",
4
4
  "description": "Tools, wrappers and configuration for testing a Cedar project.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -117,10 +117,10 @@
117
117
  },
118
118
  "dependencies": {
119
119
  "@babel/preset-env": "7.29.7",
120
- "@cedarjs/babel-config": "6.0.0-canary.2789",
121
- "@cedarjs/context": "6.0.0-canary.2789",
122
- "@cedarjs/graphql-server": "6.0.0-canary.2789",
123
- "@cedarjs/project-config": "6.0.0-canary.2789",
120
+ "@cedarjs/babel-config": "6.0.0-canary.2792",
121
+ "@cedarjs/context": "6.0.0-canary.2792",
122
+ "@cedarjs/graphql-server": "6.0.0-canary.2792",
123
+ "@cedarjs/project-config": "6.0.0-canary.2792",
124
124
  "@testing-library/dom": "10.4.1",
125
125
  "@testing-library/jest-dom": "6.9.1",
126
126
  "@testing-library/react": "16.3.2",
@@ -142,10 +142,10 @@
142
142
  },
143
143
  "devDependencies": {
144
144
  "@arethetypeswrong/cli": "0.18.5",
145
- "@cedarjs/auth": "6.0.0-canary.2789",
146
- "@cedarjs/framework-tools": "6.0.0-canary.2789",
147
- "@cedarjs/router": "6.0.0-canary.2789",
148
- "@cedarjs/web": "6.0.0-canary.2789",
145
+ "@cedarjs/auth": "6.0.0-canary.2792",
146
+ "@cedarjs/framework-tools": "6.0.0-canary.2792",
147
+ "@cedarjs/router": "6.0.0-canary.2792",
148
+ "@cedarjs/web": "6.0.0-canary.2792",
149
149
  "concurrently": "9.2.4",
150
150
  "jsdom": "27.4.0",
151
151
  "publint": "0.3.22",
@@ -153,9 +153,9 @@
153
153
  "vitest": "4.1.10"
154
154
  },
155
155
  "peerDependencies": {
156
- "@cedarjs/auth": "6.0.0-canary.2789",
157
- "@cedarjs/router": "6.0.0-canary.2789",
158
- "@cedarjs/web": "6.0.0-canary.2789",
156
+ "@cedarjs/auth": "6.0.0-canary.2792",
157
+ "@cedarjs/router": "6.0.0-canary.2792",
158
+ "@cedarjs/web": "6.0.0-canary.2792",
159
159
  "vitest": "4.1.10"
160
160
  },
161
161
  "peerDependenciesMeta": {