@cedarjs/testing 6.0.0-canary.2780 → 6.0.0-canary.2781
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.
- package/config/jest/web/jest-preset.d.ts.map +1 -1
- package/config/jest/web/jest-preset.js +13 -4
- package/dist/cjs/config/jest/web/jest-preset.d.ts.map +1 -1
- package/dist/cjs/config/jest/web/jest-preset.js +13 -4
- package/dist/config/jest/web/jest-preset.d.ts.map +1 -1
- package/dist/config/jest/web/jest-preset.js +13 -4
- package/package.json +12 -12
|
@@ -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,
|
|
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,MA0Ib,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -176,7 +176,15 @@ const config = {
|
|
|
176
176
|
// same carve-out. `@cedarjs/forms` is ESM-only for the same reason, and
|
|
177
177
|
// gets pulled into virtually every generated project's web-side tests
|
|
178
178
|
// via `web/src/pages/**` scaffolds and dbAuth login/signup forms.
|
|
179
|
-
|
|
179
|
+
// `@cedarjs/web`, `@cedarjs/auth`, and `@cedarjs/router` are ESM-only
|
|
180
|
+
// too. `web` and `router` are imported directly by virtually every
|
|
181
|
+
// generated project's web-side test (`Routes.tsx`, page/component
|
|
182
|
+
// scaffolds), and `auth` gets pulled in transitively through `web`.
|
|
183
|
+
// Jest's own module loader re-applies this carve-out to every file it
|
|
184
|
+
// loads, including ones reached transitively through an
|
|
185
|
+
// already-transformed require() call, so all of them need to be listed
|
|
186
|
+
// even though only `web`/`router` are usually imported directly.
|
|
187
|
+
"[/\\\\]node_modules[/\\\\](?:.+\\.mjs|(?:until-async|@cedarjs[/\\\\](?:auth-[a-z-]+-web|forms|web|auth|router))[/\\\\].+\\.js)$": [
|
|
180
188
|
"babel-jest",
|
|
181
189
|
{
|
|
182
190
|
babelrc: false,
|
|
@@ -196,8 +204,9 @@ const config = {
|
|
|
196
204
|
]
|
|
197
205
|
},
|
|
198
206
|
// Jest's default is to not transform anything in node_modules, but `.mjs`
|
|
199
|
-
// files (and until-async, @cedarjs/auth-*-web,
|
|
200
|
-
//
|
|
207
|
+
// files (and until-async, @cedarjs/auth-*-web, @cedarjs/forms,
|
|
208
|
+
// @cedarjs/web, @cedarjs/auth, and @cedarjs/router) have to be compiled to
|
|
209
|
+
// CommonJS (see the transform above).
|
|
201
210
|
// The `.pnpm` lookahead is what makes this work with pnpm: its virtual store
|
|
202
211
|
// puts packages at `node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>`,
|
|
203
212
|
// so without it the pattern matches (and thereby ignores) at the *first*
|
|
@@ -206,7 +215,7 @@ const config = {
|
|
|
206
215
|
// Skipping that segment forces the match onto the inner `node_modules`,
|
|
207
216
|
// which looks the same as a hoisted npm/yarn layout
|
|
208
217
|
transformIgnorePatterns: [
|
|
209
|
-
"[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])(?!@cedarjs[/\\\\]forms[/\\\\])",
|
|
218
|
+
"[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])(?!@cedarjs[/\\\\]forms[/\\\\])(?!@cedarjs[/\\\\]web[/\\\\])(?!@cedarjs[/\\\\]auth[/\\\\])(?!@cedarjs[/\\\\]router[/\\\\])",
|
|
210
219
|
"\\.pnp\\.[^\\\\/]+$"
|
|
211
220
|
],
|
|
212
221
|
resolver: import_node_path.default.resolve(__dirname, "./resolver.js"),
|
|
@@ -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,
|
|
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,MA0Ib,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -176,7 +176,15 @@ const config = {
|
|
|
176
176
|
// same carve-out. `@cedarjs/forms` is ESM-only for the same reason, and
|
|
177
177
|
// gets pulled into virtually every generated project's web-side tests
|
|
178
178
|
// via `web/src/pages/**` scaffolds and dbAuth login/signup forms.
|
|
179
|
-
|
|
179
|
+
// `@cedarjs/web`, `@cedarjs/auth`, and `@cedarjs/router` are ESM-only
|
|
180
|
+
// too. `web` and `router` are imported directly by virtually every
|
|
181
|
+
// generated project's web-side test (`Routes.tsx`, page/component
|
|
182
|
+
// scaffolds), and `auth` gets pulled in transitively through `web`.
|
|
183
|
+
// Jest's own module loader re-applies this carve-out to every file it
|
|
184
|
+
// loads, including ones reached transitively through an
|
|
185
|
+
// already-transformed require() call, so all of them need to be listed
|
|
186
|
+
// even though only `web`/`router` are usually imported directly.
|
|
187
|
+
"[/\\\\]node_modules[/\\\\](?:.+\\.mjs|(?:until-async|@cedarjs[/\\\\](?:auth-[a-z-]+-web|forms|web|auth|router))[/\\\\].+\\.js)$": [
|
|
180
188
|
"babel-jest",
|
|
181
189
|
{
|
|
182
190
|
babelrc: false,
|
|
@@ -196,8 +204,9 @@ const config = {
|
|
|
196
204
|
]
|
|
197
205
|
},
|
|
198
206
|
// Jest's default is to not transform anything in node_modules, but `.mjs`
|
|
199
|
-
// files (and until-async, @cedarjs/auth-*-web,
|
|
200
|
-
//
|
|
207
|
+
// files (and until-async, @cedarjs/auth-*-web, @cedarjs/forms,
|
|
208
|
+
// @cedarjs/web, @cedarjs/auth, and @cedarjs/router) have to be compiled to
|
|
209
|
+
// CommonJS (see the transform above).
|
|
201
210
|
// The `.pnpm` lookahead is what makes this work with pnpm: its virtual store
|
|
202
211
|
// puts packages at `node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>`,
|
|
203
212
|
// so without it the pattern matches (and thereby ignores) at the *first*
|
|
@@ -206,7 +215,7 @@ const config = {
|
|
|
206
215
|
// Skipping that segment forces the match onto the inner `node_modules`,
|
|
207
216
|
// which looks the same as a hoisted npm/yarn layout
|
|
208
217
|
transformIgnorePatterns: [
|
|
209
|
-
"[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])(?!@cedarjs[/\\\\]forms[/\\\\])",
|
|
218
|
+
"[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])(?!@cedarjs[/\\\\]forms[/\\\\])(?!@cedarjs[/\\\\]web[/\\\\])(?!@cedarjs[/\\\\]auth[/\\\\])(?!@cedarjs[/\\\\]router[/\\\\])",
|
|
210
219
|
"\\.pnp\\.[^\\\\/]+$"
|
|
211
220
|
],
|
|
212
221
|
resolver: import_node_path.default.resolve(__dirname, "./resolver.js"),
|
|
@@ -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,
|
|
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,MA0Ib,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -143,7 +143,15 @@ const config = {
|
|
|
143
143
|
// same carve-out. `@cedarjs/forms` is ESM-only for the same reason, and
|
|
144
144
|
// gets pulled into virtually every generated project's web-side tests
|
|
145
145
|
// via `web/src/pages/**` scaffolds and dbAuth login/signup forms.
|
|
146
|
-
|
|
146
|
+
// `@cedarjs/web`, `@cedarjs/auth`, and `@cedarjs/router` are ESM-only
|
|
147
|
+
// too. `web` and `router` are imported directly by virtually every
|
|
148
|
+
// generated project's web-side test (`Routes.tsx`, page/component
|
|
149
|
+
// scaffolds), and `auth` gets pulled in transitively through `web`.
|
|
150
|
+
// Jest's own module loader re-applies this carve-out to every file it
|
|
151
|
+
// loads, including ones reached transitively through an
|
|
152
|
+
// already-transformed require() call, so all of them need to be listed
|
|
153
|
+
// even though only `web`/`router` are usually imported directly.
|
|
154
|
+
"[/\\\\]node_modules[/\\\\](?:.+\\.mjs|(?:until-async|@cedarjs[/\\\\](?:auth-[a-z-]+-web|forms|web|auth|router))[/\\\\].+\\.js)$": [
|
|
147
155
|
"babel-jest",
|
|
148
156
|
{
|
|
149
157
|
babelrc: false,
|
|
@@ -163,8 +171,9 @@ const config = {
|
|
|
163
171
|
]
|
|
164
172
|
},
|
|
165
173
|
// Jest's default is to not transform anything in node_modules, but `.mjs`
|
|
166
|
-
// files (and until-async, @cedarjs/auth-*-web,
|
|
167
|
-
//
|
|
174
|
+
// files (and until-async, @cedarjs/auth-*-web, @cedarjs/forms,
|
|
175
|
+
// @cedarjs/web, @cedarjs/auth, and @cedarjs/router) have to be compiled to
|
|
176
|
+
// CommonJS (see the transform above).
|
|
168
177
|
// The `.pnpm` lookahead is what makes this work with pnpm: its virtual store
|
|
169
178
|
// puts packages at `node_modules/.pnpm/<pkg>@<version>/node_modules/<pkg>`,
|
|
170
179
|
// so without it the pattern matches (and thereby ignores) at the *first*
|
|
@@ -173,7 +182,7 @@ const config = {
|
|
|
173
182
|
// Skipping that segment forces the match onto the inner `node_modules`,
|
|
174
183
|
// which looks the same as a hoisted npm/yarn layout
|
|
175
184
|
transformIgnorePatterns: [
|
|
176
|
-
"[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])(?!@cedarjs[/\\\\]forms[/\\\\])",
|
|
185
|
+
"[/\\\\]node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!.*\\.mjs$)(?!until-async[/\\\\])(?!@cedarjs[/\\\\]auth-[a-z-]+-web[/\\\\])(?!@cedarjs[/\\\\]forms[/\\\\])(?!@cedarjs[/\\\\]web[/\\\\])(?!@cedarjs[/\\\\]auth[/\\\\])(?!@cedarjs[/\\\\]router[/\\\\])",
|
|
177
186
|
"\\.pnp\\.[^\\\\/]+$"
|
|
178
187
|
],
|
|
179
188
|
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.
|
|
3
|
+
"version": "6.0.0-canary.2781",
|
|
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.
|
|
121
|
-
"@cedarjs/context": "6.0.0-canary.
|
|
122
|
-
"@cedarjs/graphql-server": "6.0.0-canary.
|
|
123
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
120
|
+
"@cedarjs/babel-config": "6.0.0-canary.2781",
|
|
121
|
+
"@cedarjs/context": "6.0.0-canary.2781",
|
|
122
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2781",
|
|
123
|
+
"@cedarjs/project-config": "6.0.0-canary.2781",
|
|
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.
|
|
146
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
147
|
-
"@cedarjs/router": "6.0.0-canary.
|
|
148
|
-
"@cedarjs/web": "6.0.0-canary.
|
|
145
|
+
"@cedarjs/auth": "6.0.0-canary.2781",
|
|
146
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2781",
|
|
147
|
+
"@cedarjs/router": "6.0.0-canary.2781",
|
|
148
|
+
"@cedarjs/web": "6.0.0-canary.2781",
|
|
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.
|
|
157
|
-
"@cedarjs/router": "6.0.0-canary.
|
|
158
|
-
"@cedarjs/web": "6.0.0-canary.
|
|
156
|
+
"@cedarjs/auth": "6.0.0-canary.2781",
|
|
157
|
+
"@cedarjs/router": "6.0.0-canary.2781",
|
|
158
|
+
"@cedarjs/web": "6.0.0-canary.2781",
|
|
159
159
|
"vitest": "4.1.10"
|
|
160
160
|
},
|
|
161
161
|
"peerDependenciesMeta": {
|