@cedarjs/testing 6.0.0-canary.2770 → 6.0.0-canary.2772

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,MA0Db,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,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -91,6 +91,23 @@ 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$": [
102
+ "babel-jest",
103
+ {
104
+ babelrc: false,
105
+ configFile: false,
106
+ presets: [
107
+ [require.resolve("@babel/preset-env"), { targets: { node: "20" } }]
108
+ ]
109
+ }
110
+ ],
94
111
  "\\.[cm]?[jt]sx?$": [
95
112
  "babel-jest",
96
113
  // When jest runs tests in parallel, it serializes the config before passing down options to babel
@@ -104,6 +121,9 @@ const config = {
104
121
  }
105
122
  ]
106
123
  },
124
+ transformIgnorePatterns: [
125
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
126
+ ],
107
127
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
108
128
  };
109
129
  var jest_preset_default = config;
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/web/jest-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAiIlC,QAAA,MAAM,MAAM,EAAE,MAwHb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/web/jest-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAiIlC,QAAA,MAAM,MAAM,EAAE,MA+Hb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -168,7 +168,13 @@ const config = {
168
168
  // node_modules (plus until-async) to CommonJS. This needs its own
169
169
  // transform entry (with the config inlined) because the web babel config
170
170
  // ignores node_modules
171
- "[/\\\\]node_modules[/\\\\](?:.+\\.mjs|until-async[/\\\\].+\\.js)$": [
171
+ //
172
+ // The `@cedarjs/auth-*-web` packages are ESM-only too, and (like
173
+ // until-async) ship plain `.js` files rather than `.mjs` since their
174
+ // package.json already declares `"type": "module"`. A generated
175
+ // project's `web/src/auth.ts` imports one of these, so they need the
176
+ // same carve-out.
177
+ "[/\\\\]node_modules[/\\\\](?:.+\\.mjs|(?:until-async|@cedarjs[/\\\\]auth-[a-z-]+-web)[/\\\\].+\\.js)$": [
172
178
  "babel-jest",
173
179
  {
174
180
  babelrc: false,
@@ -188,8 +194,8 @@ const config = {
188
194
  ]
189
195
  },
190
196
  // Jest's default is to not transform anything in node_modules, but `.mjs`
191
- // files (and until-async) have to be compiled to CommonJS (see the
192
- // transform above).
197
+ // files (and until-async, and @cedarjs/auth-*-web) have to be compiled to
198
+ // CommonJS (see the transform above).
193
199
  // The `.pnpm` lookahead is what makes this work with pnpm: its virtual store
194
200
  // puts packages at `node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>`,
195
201
  // so without it the pattern matches (and thereby ignores) at the *first*
@@ -198,7 +204,7 @@ const config = {
198
204
  // Skipping that segment forces the match onto the inner `node_modules`,
199
205
  // which looks the same as a hoisted npm/yarn layout
200
206
  transformIgnorePatterns: [
201
- "[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])",
207
+ "[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])",
202
208
  "\\.pnp\\.[^\\\\/]+$"
203
209
  ],
204
210
  resolver: import_node_path.default.resolve(__dirname, "./resolver.js"),
@@ -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,MA0Db,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,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -91,6 +91,23 @@ 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$": [
102
+ "babel-jest",
103
+ {
104
+ babelrc: false,
105
+ configFile: false,
106
+ presets: [
107
+ [require.resolve("@babel/preset-env"), { targets: { node: "20" } }]
108
+ ]
109
+ }
110
+ ],
94
111
  "\\.[cm]?[jt]sx?$": [
95
112
  "babel-jest",
96
113
  // When jest runs tests in parallel, it serializes the config before passing down options to babel
@@ -104,6 +121,9 @@ const config = {
104
121
  }
105
122
  ]
106
123
  },
124
+ transformIgnorePatterns: [
125
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
126
+ ],
107
127
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
108
128
  };
109
129
  var jest_preset_default = config;
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/web/jest-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAiIlC,QAAA,MAAM,MAAM,EAAE,MAwHb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/web/jest-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAiIlC,QAAA,MAAM,MAAM,EAAE,MA+Hb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -168,7 +168,13 @@ const config = {
168
168
  // node_modules (plus until-async) to CommonJS. This needs its own
169
169
  // transform entry (with the config inlined) because the web babel config
170
170
  // ignores node_modules
171
- "[/\\\\]node_modules[/\\\\](?:.+\\.mjs|until-async[/\\\\].+\\.js)$": [
171
+ //
172
+ // The `@cedarjs/auth-*-web` packages are ESM-only too, and (like
173
+ // until-async) ship plain `.js` files rather than `.mjs` since their
174
+ // package.json already declares `"type": "module"`. A generated
175
+ // project's `web/src/auth.ts` imports one of these, so they need the
176
+ // same carve-out.
177
+ "[/\\\\]node_modules[/\\\\](?:.+\\.mjs|(?:until-async|@cedarjs[/\\\\]auth-[a-z-]+-web)[/\\\\].+\\.js)$": [
172
178
  "babel-jest",
173
179
  {
174
180
  babelrc: false,
@@ -188,8 +194,8 @@ const config = {
188
194
  ]
189
195
  },
190
196
  // Jest's default is to not transform anything in node_modules, but `.mjs`
191
- // files (and until-async) have to be compiled to CommonJS (see the
192
- // transform above).
197
+ // files (and until-async, and @cedarjs/auth-*-web) have to be compiled to
198
+ // CommonJS (see the transform above).
193
199
  // The `.pnpm` lookahead is what makes this work with pnpm: its virtual store
194
200
  // puts packages at `node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>`,
195
201
  // so without it the pattern matches (and thereby ignores) at the *first*
@@ -198,7 +204,7 @@ const config = {
198
204
  // Skipping that segment forces the match onto the inner `node_modules`,
199
205
  // which looks the same as a hoisted npm/yarn layout
200
206
  transformIgnorePatterns: [
201
- "[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])",
207
+ "[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])",
202
208
  "\\.pnp\\.[^\\\\/]+$"
203
209
  ],
204
210
  resolver: import_node_path.default.resolve(__dirname, "./resolver.js"),
@@ -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,MA0Db,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,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -58,6 +58,23 @@ 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$": [
69
+ "babel-jest",
70
+ {
71
+ babelrc: false,
72
+ configFile: false,
73
+ presets: [
74
+ [require.resolve("@babel/preset-env"), { targets: { node: "20" } }]
75
+ ]
76
+ }
77
+ ],
61
78
  "\\.[cm]?[jt]sx?$": [
62
79
  "babel-jest",
63
80
  // When jest runs tests in parallel, it serializes the config before passing down options to babel
@@ -71,6 +88,9 @@ const config = {
71
88
  }
72
89
  ]
73
90
  },
91
+ transformIgnorePatterns: [
92
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
93
+ ],
74
94
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
75
95
  };
76
96
  var jest_preset_default = config;
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/web/jest-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAiIlC,QAAA,MAAM,MAAM,EAAE,MAwHb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/web/jest-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAiIlC,QAAA,MAAM,MAAM,EAAE,MA+Hb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -135,7 +135,13 @@ const config = {
135
135
  // node_modules (plus until-async) to CommonJS. This needs its own
136
136
  // transform entry (with the config inlined) because the web babel config
137
137
  // ignores node_modules
138
- "[/\\\\]node_modules[/\\\\](?:.+\\.mjs|until-async[/\\\\].+\\.js)$": [
138
+ //
139
+ // The `@cedarjs/auth-*-web` packages are ESM-only too, and (like
140
+ // until-async) ship plain `.js` files rather than `.mjs` since their
141
+ // package.json already declares `"type": "module"`. A generated
142
+ // project's `web/src/auth.ts` imports one of these, so they need the
143
+ // same carve-out.
144
+ "[/\\\\]node_modules[/\\\\](?:.+\\.mjs|(?:until-async|@cedarjs[/\\\\]auth-[a-z-]+-web)[/\\\\].+\\.js)$": [
139
145
  "babel-jest",
140
146
  {
141
147
  babelrc: false,
@@ -155,8 +161,8 @@ const config = {
155
161
  ]
156
162
  },
157
163
  // Jest's default is to not transform anything in node_modules, but `.mjs`
158
- // files (and until-async) have to be compiled to CommonJS (see the
159
- // transform above).
164
+ // files (and until-async, and @cedarjs/auth-*-web) have to be compiled to
165
+ // CommonJS (see the transform above).
160
166
  // The `.pnpm` lookahead is what makes this work with pnpm: its virtual store
161
167
  // puts packages at `node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>`,
162
168
  // so without it the pattern matches (and thereby ignores) at the *first*
@@ -165,7 +171,7 @@ const config = {
165
171
  // Skipping that segment forces the match onto the inner `node_modules`,
166
172
  // which looks the same as a hoisted npm/yarn layout
167
173
  transformIgnorePatterns: [
168
- "[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])",
174
+ "[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])",
169
175
  "\\.pnp\\.[^\\\\/]+$"
170
176
  ],
171
177
  resolver: path.resolve(__dirname, "./resolver.js"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/testing",
3
- "version": "6.0.0-canary.2770",
3
+ "version": "6.0.0-canary.2772",
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.2770",
121
- "@cedarjs/context": "6.0.0-canary.2770",
122
- "@cedarjs/graphql-server": "6.0.0-canary.2770",
123
- "@cedarjs/project-config": "6.0.0-canary.2770",
120
+ "@cedarjs/babel-config": "6.0.0-canary.2772",
121
+ "@cedarjs/context": "6.0.0-canary.2772",
122
+ "@cedarjs/graphql-server": "6.0.0-canary.2772",
123
+ "@cedarjs/project-config": "6.0.0-canary.2772",
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.2770",
146
- "@cedarjs/framework-tools": "6.0.0-canary.2770",
147
- "@cedarjs/router": "6.0.0-canary.2770",
148
- "@cedarjs/web": "6.0.0-canary.2770",
145
+ "@cedarjs/auth": "6.0.0-canary.2772",
146
+ "@cedarjs/framework-tools": "6.0.0-canary.2772",
147
+ "@cedarjs/router": "6.0.0-canary.2772",
148
+ "@cedarjs/web": "6.0.0-canary.2772",
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.2770",
157
- "@cedarjs/router": "6.0.0-canary.2770",
158
- "@cedarjs/web": "6.0.0-canary.2770",
156
+ "@cedarjs/auth": "6.0.0-canary.2772",
157
+ "@cedarjs/router": "6.0.0-canary.2772",
158
+ "@cedarjs/web": "6.0.0-canary.2772",
159
159
  "vitest": "4.1.10"
160
160
  },
161
161
  "peerDependenciesMeta": {